Home » HTML » HTML_QuickForm » Bug #6642
No required note printed for AddGroupRule
Details
| Submitted | 2006-01-31 15:11 UTC |
|---|---|
| From | leonard at locomo dot nl |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | Irrelevant |
| OS | irrelevant |
| 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.