This is a fresh install, and very few other modules are enabled and installed - in fact, just the prerequisites for Ubercart Attribute Files to work:
Drupal 6.25
Ubercart 6.x-2.7
User Files 6.x-1.0-beta6
Imageapi-6.x-1.10
Imagecache-6.x-2.0-beta12
Token-6.x-1.18
I created a product and set a single attribute of file upload.
In the attributes configuration, I have enabled "required".
In the product edit screen - attributes section, I have enabled the "required" checkbox as well.
When I view the product, I see the attribute, and I can apparently upload the file, or at least populate the field.
When I click on "add to cart", however, I see an error message "[attribute name] field is required". This message is repeated once (total of two identical messages).
If I remove the "required" check box from the product edit screen - attributes section, all seems to work as intended. The cart displays the file uploaded, and I've verified the file has been uploaded correctly. The problem only arises when I require the attribute file upload on the edit PRODUCT page - Setting the requirement in the main attribute configuration page seems to have no effect.
Comments
Comment #1
larowlanI'd guess that both UC and this module have validation code.
Assuming here you want the field to be required.
Comment #2
gillisig commentedI can confirm this bug, have you guys made any progress on this?
It is kind of important in my case that this field is required. :/
Comment #3
atpresources commentedsame here but reverse, I do not have required checked, but when I add to cart, it gives me the error that this upload field is required.
using:
Drupal 7
ubercart
uc_attribute_files 7 .1 dev
thanks,
Thomas