Fix some inconsistent braces and add a comment to the objectManager code
This commit is contained in:
@@ -300,6 +300,8 @@ class ObjectManager
|
|||||||
switch($aClean['sSubmit'])
|
switch($aClean['sSubmit'])
|
||||||
{
|
{
|
||||||
case "Submit":
|
case "Submit":
|
||||||
|
// if we have a valid iId then we are displaying an existing entry
|
||||||
|
// otherwise we should create the entry in the 'else' case
|
||||||
if($this->iId)
|
if($this->iId)
|
||||||
{
|
{
|
||||||
if(!$oObject->canEdit())
|
if(!$oObject->canEdit())
|
||||||
@@ -312,9 +314,10 @@ class ObjectManager
|
|||||||
$oObject->unQueue();
|
$oObject->unQueue();
|
||||||
|
|
||||||
$oObject->update();
|
$oObject->update();
|
||||||
}
|
} else
|
||||||
else
|
{
|
||||||
$oObject->create();
|
$oObject->create();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "Reject":
|
case "Reject":
|
||||||
|
|||||||
@@ -84,8 +84,9 @@ if($oObject->iId)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if ($aClean['sAction'] == "add")
|
} else if ($aClean['sAction'] == "add")
|
||||||
|
{
|
||||||
$oObject->add_entry($REQUEST_URI, $sErrors);
|
$oObject->add_entry($REQUEST_URI, $sErrors);
|
||||||
else
|
} else
|
||||||
{
|
{
|
||||||
// if displaying a queue display the help for the given queue
|
// if displaying a queue display the help for the given queue
|
||||||
if($oObject->bIsQueue)
|
if($oObject->bIsQueue)
|
||||||
|
|||||||
Reference in New Issue
Block a user