Use objectManager to add and edit notes

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-09-19 20:12:37 +02:00
committed by Chris Morgan
parent a6a62a2299
commit 72a250b2b0
6 changed files with 42 additions and 144 deletions

View File

@@ -91,7 +91,7 @@ if(!$sAction)
apidb_header($oObject->get_title($sAction));
/* display a particular element */
if($oObject->iId)
if($oObject->iId && $sAction != "add")
{
switch($sAction)
{
@@ -117,7 +117,7 @@ if($oObject->iId)
}
} else if ($sAction == "add")
{
$oObject->add_entry($_SERVER['REQUEST_URI'], $sErrors);
$oObject->add_entry($aClean, $sErrors);
} else
{
// if displaying a queue display the help for the given queue