Bug #4163 [NEW]: required field in group
| From: | pas at gmx dot ch | Date: | Sat, 16 Apr 2005 15:47:13 +0000 |
| Subject: | Bug #4163 [NEW]: required field in group | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-4040@lists.php.net to get a copy of this message | ||
From: pas at gmx dot ch
Operating system:
PHP version: Irrelevant
Package: Bug System
Bug Type: Bug
Bug description: required field in group
Description:
------------
A simle change in at:
HTML_QuickForm::addGroupRule();
If you want to define a single field as required field, then the group
should be marked as requered.
The only thing we have to do is to add:
$this->_required[] = $groupObj->getName();
after:
if ('required' == $type || 'uploadedfile' == $type) {
$groupObj->_required[] = $elementName;
$this->_required[] = $elementName;
thanx!
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=4163&edit=1
--