Max Length Limit not enforced on Attribute Text Field

Project:Max Chars for Text Attributes
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
uc_attribute_length

Hello,

This module is exactly what I'm looking for...thanks for the contribution!. I am using the text attribute to enable people to personalize certain products. The default size is too large, so I need to reduce it down to 20 characters.

I successfully installed the uc_attribute_length module and see the "Max Chars" field on the attribute tab when I am adding or editing a product. I add the value "20" to the field next to the text attribute and save. However, when I go into the main view and review product, the text attribute size has not been reduced to 20 characters. It allows me to add and save many more characters.

1. Is the uc_attribute_length module supposed to work in this way?

2. Is there another text field setting that I need to update?

Thanks

Version: 
Ubercart 1.3
cha0s's picture
Offline
Getting busy with the Ubercode.
Joined: 08/22/2008
Juice: 416
Re: Max Length Limit not enforced on Attribute Text Field

I can't reproduce this. If I specify 20 characters, I'm limited to 20 characters.

Module is at http://www.ubercart.org/contrib/5341 for reference.

EDIT: Ah, I have found a case where it isn't enforced. When you view a Product Kit, the textfield is not limited as when you view the individual Product.

Try FreeBASIC!
My game Lynn's Legacy

hedgehog's picture
Offline
Joined: 10/07/2008
Juice: 14
Re: Re: Max Length Limit not enforced on Attribute Text Field
Assigned to:cha0s» hedgehog

Hi, I have the same problem, it doesn't enforce the length. I am not using a product kit, just a normal individual product.

cYu
cYu's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 11/19/2007
Juice: 850
Re: Re: Max Length Limit not enforced on Attribute Text Field
Assigned to:hedgehog» cYu

I've added in product kit support and added some other bugfixes. Can you try out the newly updated module and see if it works? The only thing I can think of that would stop it from working is if a different installed module is overwriting validations.