#19359 [Opn->Csd]: QuickForm Bug
| From: | mansion@php.net | Date: | Fri, 27 Sep 2002 11:43:06 +0000 |
| Subject: | #19359 [Opn->Csd]: QuickForm Bug | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9597@lists.php.net to get a copy of this message | ||
ID: 19359
Updated by: mansion@php.net
Reported By: entis@poczta.fm
-Status: Open
+Status: Closed
Bug Type: PEAR related
PHP Version: 4.2.1
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-09-11 10:32:46] entis@poczta.fm
(sorry, my english isn't very good :( )
I found bug in QuickForm class.
example :
$form->addElement('link','linkname',null,'index.php','This is
link',array('style'=>'font-size:20px'));
BUG : last argument is ignored becouse in onQuickFormEvent method (from
HTML_QuickForm_element) is error:
...
switch ($event) {
case 'addElement':
case 'createElement':
$this->$className($arg[0], $arg[1], $arg[2], $arg[3]);
break;
...
there is only 4 arguments passed, but constructor needs 5
function HTML_QuickForm_link($elementName=null, $elementLabel=null,
$href=null, $text=null, $attributes=null)
I made this :
$this->$className($arg[0], $arg[1], $arg[2], $arg[3], $arg[4]);
and it works for me.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19359&edit=1