ChangeSet ID: 31104 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/04/24 18:40:12
Modified files: include : objectManager.php
Log message: Alexander Nicolaysen Sørnes alex@thehandofagony.com Display add item help text after fetching input values. This allows the help text functions to output help depending on the state of the edited object
Patch: http://cvs.winehq.org/patch.py?id=31104
Old revision New revision Changes Path 1.17 1.18 +5 -4 appdb/include/objectManager.php
Index: appdb/include/objectManager.php diff -u -p appdb/include/objectManager.php:1.17 appdb/include/objectManager.php:1.18 --- appdb/include/objectManager.php:1.17 24 Apr 2007 23:40:12 -0000 +++ appdb/include/objectManager.php 24 Apr 2007 23:40:12 -0000 @@ -258,16 +258,17 @@ class ObjectManager
$oObject = new $this->sClass();
- /* Display help if it is exists */ - if(method_exists(new $this->sClass, "objectDisplayAddItemHelp")) - $oObject->objectDisplayAddItemHelp(); - /* Display errors, if any, and fetch form data */ if($this->displayErrors($sErrors)) { global $aClean; $oObject->getOutputEditorValues($aClean); } + + /* Display help if it is exists */ + if(method_exists(new $this->sClass, "objectDisplayAddItemHelp")) + $oObject->objectDisplayAddItemHelp(); + echo "<form method="post">\n";
$oObject->outputEditor();