DB_DO_FB problem while grouping __submit__ + 1elt

From: Date: Thu, 29 Dec 2005 15:45:08 +0000
Subject: DB_DO_FB problem while grouping __submit__ + 1elt
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22375@lists.php.net to get a copy of this message
Hi all. I checked the bug list for DB_DataObject_FormBuilder and did not find something similar to what I'm experiencing. I'm making compact forms so that it can fit into one or two lines, using groups and more precisely $fb_preDefGroups in my dataobjects. The problem I have is when I want to add the __submit__ to a preDefGroup. If I group it with two or more elements it works ok, but if I try to group it with only one element. I.e. $this->fb_preDefGroups=array('date'=>'find','__submit__'=>'find');// I get the error $this-
fb_preDefGroups=array('date'=>'find','iduser'=>'find','__submit__'=>'find');// Just works fine
This is the error : PHP Fatal error: Call to undefined method DB_DataObject_FormBuilder::_getElementName() in /Applications/MAMP/bin/php5/lib/php/DB/DataObject/FormBuilder.php on line 1550 I know I could find a workaround using the postGenerateForm method, but it really looks like a bug anyway. What do you think ?

« previous php.pear.general (#22375) next »