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
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-24 23:40:12 +00:00
committed by WineHQ
parent 982dc97756
commit ec8312233c

View File

@@ -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();