Bug #1291
closedNon-mandatory file fields not working at registration
Description
Some field types (Image and File) will not function properly at all when hidden. This is due to their validation happening after user registration has been submitted. Regex also does not function properly when used on a field that is hidden unless the value of the field is NULL.
http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,111614/catid,110/
This has as effect that Hide fields on registration not functioning based on field
Files
Updated by beat almost 15 years ago
- Status changed from New to Assigned
- Assignee set to krileon
- Priority changed from Normal to Immediate
Moving to CB as the validation itself of "file chosen" at very least should happen before user is registered in all cases.
Kyle, could you take a look at this, and propose a patch for CB 1.2.2 ?
Thanks
Updated by krileon almost 15 years ago
- File 1291.patch added
- Status changed from Assigned to Resolved
- Assignee changed from krileon to beat
- % Done changed from 0 to 80
Added a validation function to check validity of field values and moved validation error checking to it. Required errors no longer trigger when used in conjunction with CBSubs and "hide at registration". 1 validation error check still exists in datasave function, but is for imgToolbox and is necessary to stop code and present user with the issue. However, it will not get to this point if the value is null/empty; thus not presenting the error unless a user has actually tried to upload something.
Updated by beat almost 15 years ago
- Subject changed from Hide fields on registration not functioning based on field to Non-mandatory file fields not working at registration
Updated by beat almost 15 years ago
- Status changed from Resolved to Closed
r925 fixes delete query of patch and this issue.