Re: HTML_QuickForm, advcheckbox, setChecked()

From: Date: Sat, 17 Apr 2004 22:25:11 +0000
Subject: Re: HTML_QuickForm, advcheckbox, setChecked()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27891@lists.php.net to get a copy of this message
<pmjones@ciaweb.net> wrote : > <?php > > require_once 'HTML/QuickForm.php'; > require_once 'Var_Dump.php'; > > $elem =& HTML_QuickForm::createElement( > 'advcheckbox', > 'xbox', > 'Label:', > null, > null, > array(0,1) > ); > > $elem->setValue(1); > > Var_Dump::display($elem); > > $form =& new HTML_QuickForm(); > $form->addElement($elem); > $form->display(); > > Var_Dump::display($form); > > ?> Thanks for the test case. Looks like line 250 of advcheckbox.php should read: if (null !== $value) { $this->setValue($value); } Could you please test and file a bug :) Thanks, Bertrand Mansion Mamasam

« previous php.pear.dev (#27891) next »