Re: [ANNOUNCEMENT] HTML_QuickForm-3.2.8 (stable) Released.
| From: | Alexey Borzov | Date: | Mon, 04 Jun 2007 15:37:23 +0000 |
| Subject: | Re: [ANNOUNCEMENT] HTML_QuickForm-3.2.8 (stable) Released. | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27401@lists.php.net to get a copy of this message | ||
Hi,
Massimiliano Arione wrote:
PEAR Announce wrote:Good catch, thanks. Looks like date element tries to assign default values with leading zeros while select element now considers '4' and '04' as different.The new PEAR package HTML_QuickForm-3.2.8 (stable) has been released at http://pear.php.net/.[...]Bugfixes: * Wrong options could be selected in <select> elements if numeric strings were used as options' values (bug #10837, bug #11138) * 'checked' attribute of checkbox was not cleared if adding checkbox to a form submitted with this box unchecked (bug #11047)[...] It seems that one of that fixes introduced a problem. Now, with a date element, a day less than 10 is not checked. Example: $form =& new HTML_QuickForm('foo'); $form->addElement('date', 'date', 'Date', array('format' => 'Y-M-d')); $defs['date'] = date('Y-m-d'); // today is june 4 $form->setDefaults($defs);