cvs: pear /HTML_QuickForm/QuickForm group.php /HTML_QuickForm/docs QuickForm_example7.php

From: Date: Mon, 09 Jun 2003 15:00:52 +0000
Subject: cvs: pear /HTML_QuickForm/QuickForm group.php /HTML_QuickForm/docs QuickForm_example7.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-10806@lists.php.net to get a copy of this message
avb Mon Jun 9 11:00:52 2003 EDT Modified files: /pear/HTML_QuickForm/docs QuickForm_example7.php /pear/HTML_QuickForm/QuickForm group.php Log: fixes: * process() requires an argument * no 'required' mark near group's elements if the group is frozen Index: pear/HTML_QuickForm/docs/QuickForm_example7.php diff -u pear/HTML_QuickForm/docs/QuickForm_example7.php:1.4 pear/HTML_QuickForm/docs/QuickForm_example7.php:1.5 --- pear/HTML_QuickForm/docs/QuickForm_example7.php:1.4 Tue Mar 18 15:01:59 2003 +++ pear/HTML_QuickForm/docs/QuickForm_example7.php Mon Jun 9 11:00:51 2003 @@ -5,7 +5,7 @@ * @author Bertrand Mansion <bmansion@mamasam.com> * @version 2.5 */ -// $Id: QuickForm_example7.php,v 1.4 2003/03/18 20:01:59 avb Exp $ +// $Id: QuickForm_example7.php,v 1.5 2003/06/09 15:00:51 avb Exp $ require_once ("HTML/QuickForm.php"); $form = new HTML_QuickForm('frmTest', 'GET'); @@ -88,7 +88,7 @@ if ($form->validate()) { // Form is validated, then processes the data $form->freeze(); - $form->process(); + $form->process('var_dump'); echo "\n<HR>\n"; } $form->display(); Index: pear/HTML_QuickForm/QuickForm/group.php diff -u pear/HTML_QuickForm/QuickForm/group.php:1.23 pear/HTML_QuickForm/QuickForm/group.php:1.24 --- pear/HTML_QuickForm/QuickForm/group.php:1.23 Tue May 27 10:11:24 2003 +++ pear/HTML_QuickForm/QuickForm/group.php Mon Jun 9 11:00:52 2003 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: group.php,v 1.23 2003/05/27 14:11:24 avb Exp $ +// $Id: group.php,v 1.24 2003/06/09 15:00:52 avb Exp $ require_once("HTML/QuickForm/element.php"); @@ -471,7 +471,7 @@ if ($this->_flagFrozen) { $element->freeze(); } - $required = in_array($element->getName(), $this->_required); + $required = !$this->_flagFrozen && in_array($element->getName(), $this->_required); $element->accept($renderer, $required);

« previous php.pear.cvs (#10806) next »