From: <gem...@li...> - 2012-01-31 10:53:57
|
Revision: 437 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=437&view=rev Author: mennodekker Date: 2012-01-31 10:53:47 +0000 (Tue, 31 Jan 2012) Log Message: ----------- ported last browseedit fix to tabformsnippet, although it didn't seem necessary there?! fixed typo Modified Paths: -------------- branches/1.5.x/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php branches/1.5.x/library/classes/MUtil/Snippets/ModelFormSnippetAbstract.php Modified: branches/1.5.x/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php =================================================================== --- branches/1.5.x/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php 2012-01-31 09:59:43 UTC (rev 436) +++ branches/1.5.x/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php 2012-01-31 10:53:47 UTC (rev 437) @@ -56,6 +56,19 @@ protected $_form; /** + * Simple default function for making sure there is a $this->_saveButton. + * + * As the save button is not part of the model - but of the interface - it + * does deserve it's own function. + */ + protected function addSaveButton() + { + $this->_form->resetContext(); + parent::addSaveButton(); + } + + + /** * Perform some actions on the form, right before it is displayed but already populated * * Here we add the table display to the form. Modified: branches/1.5.x/library/classes/MUtil/Snippets/ModelFormSnippetAbstract.php =================================================================== --- branches/1.5.x/library/classes/MUtil/Snippets/ModelFormSnippetAbstract.php 2012-01-31 09:59:43 UTC (rev 436) +++ branches/1.5.x/library/classes/MUtil/Snippets/ModelFormSnippetAbstract.php 2012-01-31 10:53:47 UTC (rev 437) @@ -175,7 +175,7 @@ { $args = func_get_args(); if (count($args)<2) { - throw new Gems_Exception_Coding('Use at least 2 arguments, first the bridge and then one or more idividual items'); + throw new Gems_Exception_Coding('Use at least 2 arguments, first the bridge and then one or more individual items'); } $bridge = array_shift($args); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |