Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.16

Bug #356 Bug in javascript code when group name is not appended
Submitted: 2003-12-05 09:49 UTC
From: bmansion at mamasam dot com Assigned: mansion
Status: Closed Package: HTML_QuickForm
PHP Version: Irrelevant OS: MacOSX
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 19 + 33 = ?

 
 [2003-12-05 09:49 UTC] bmansion at mamasam dot com
Description: ------------ The javascript code that is generated by QuickForm is wrong when it comes to groups that have appendName set to false. Reproduce code: --------------- $name[] = &HTML_QuickForm::createElement('text', 'first', 'First'); $name[] = &HTML_QuickForm::createElement('text', 'last', 'Last'); $form->addGroup($name, 'name', 'Name:', null, false); $form->addRule('name', 'First and Last are required', 'required', null, 'client'); Expected result: ---------------- Should check elements individually. Actual result: -------------- if (value == '' && !errFlag['name']) { errFlag['name'] = true; _qfMsg = _qfMsg + '\n - First and Last are required'; }

Comments

 [2003-12-18 18:31 UTC] mansion at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.