From: <gem...@li...> - 2013-03-14 15:49:51
|
Revision: 1187 http://sourceforge.net/p/gemstracker/code/1187 Author: matijsdejong Date: 2013-03-14 15:49:48 +0000 (Thu, 14 Mar 2013) Log Message: ----------- No need to add save button during form construction Modified Paths: -------------- trunk/library/classes/Gems/Snippets/ModelFormSnippetAbstract.php Modified: trunk/library/classes/Gems/Snippets/ModelFormSnippetAbstract.php =================================================================== --- trunk/library/classes/Gems/Snippets/ModelFormSnippetAbstract.php 2013-03-14 15:44:54 UTC (rev 1186) +++ trunk/library/classes/Gems/Snippets/ModelFormSnippetAbstract.php 2013-03-14 15:49:48 UTC (rev 1187) @@ -245,17 +245,10 @@ protected function createForm($options = null) { if ($this->useTabbedForm) { - $form = new Gems_TabForm($options); - $this->_form = $form; - - //Now first add the saveButton as it needs to be outside the tabs - $this->addSaveButton(); - } else { - // $form = new Zend_Form($options); - $form = new Gems_Form($options); + return new Gems_TabForm($options); } - return $form; + return new Gems_Form($options); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |