Home » HTML » HTML_QuickForm » Bug #6524
file element - rule "required" doesn't work
Details
| Submitted | 2006-01-19 10:22 UTC |
|---|---|
| From | mandreiana at yahoo dot com |
| Status | Duplicate |
| Package | HTML_QuickForm |
| PHP Version | 4.2.0 |
| Roadmaps | (Not assigned) |
Comments
[2006-01-19 10:22 UTC] mandreiana at yahoo dot com
Description:
------------
$form->addElement('file', 'element', 'Label');
$form->addRule('element', 'Label is required', 'required');
The form will display it as required, but validation will proceed even if empty.
This has been reported also as bug id 5695, but not fixed (see the last comment from reporter)
[2006-01-23 11:45 UTC] mandreiana at yahoo dot com
The old bug was closed and I cannot reopen it as i'm not the reporter. I cannot even add comments thanks to this bug tracking application.
Thanks for closing this one too.