PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #6524

file element - rule "required" doesn't work

Details

Submitted2006-01-19 10:22 UTC
Frommandreiana at yahoo dot com
StatusDuplicate
PackageHTML_QuickForm
PHP Version4.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.