PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #6642

No required note printed for AddGroupRule

Details

Submitted2006-01-31 15:11 UTC
Fromleonard at locomo dot nl
StatusBogus
PackageHTML_QuickForm
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2006-01-31 15:11 UTC] leonard at locomo dot nl

Description:
------------
When adding a 'required' rule for a group element using AddGroupRule no "required asterisk" is printed for the element. The rule itself validates correctly.

Very minor issue I know, but still :) .

Test script:
---------------
$datefields[] =& HTML_QuickForm::createElement('text', 'year', '', array('size' => 4, 'maxlength' => 4, 'value' => $year));
$form->addGroup($datefields, 'date', 'Date', ' - ');
$form->addGroupRule('date', array(
'year' => array(
array('Year is required', 'required', '', 'client')
)));

Expected result:
----------------
An asterisk being printed for the required fields.