Use mustBeQueued() to determine unqueueing in objectManager
This commit is contained in:
committed by
WineHQ
parent
3dc453112a
commit
8cf53f1679
@@ -308,7 +308,7 @@ class ObjectManager
|
|||||||
if($this->bIsRejected)
|
if($this->bIsRejected)
|
||||||
$oObject->ReQueue();
|
$oObject->ReQueue();
|
||||||
|
|
||||||
if($this->bIsQueue)
|
if($this->bIsQueue && !$oObject->mustBeQueued())
|
||||||
$oObject->unQueue();
|
$oObject->unQueue();
|
||||||
|
|
||||||
$oObject->update();
|
$oObject->update();
|
||||||
|
|||||||
@@ -97,6 +97,11 @@ class testData_queue
|
|||||||
return $this->oTestData->canEdit();
|
return $this->oTestData->canEdit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mustBeQueued()
|
||||||
|
{
|
||||||
|
return $this->oTestData->mustBeQueued();
|
||||||
|
}
|
||||||
|
|
||||||
function objectDisplayAddItemHelp()
|
function objectDisplayAddItemHelp()
|
||||||
{
|
{
|
||||||
$this->oTestData->objectDisplayAddItemHelp();
|
$this->oTestData->objectDisplayAddItemHelp();
|
||||||
|
|||||||
@@ -217,6 +217,14 @@ class Vendor {
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mustBeQueued()
|
||||||
|
{
|
||||||
|
if($_SESSION['current']->hasPriv("admin"))
|
||||||
|
return FALSE;
|
||||||
|
else
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
function getOutputEditorValues($aClean)
|
function getOutputEditorValues($aClean)
|
||||||
{
|
{
|
||||||
$this->sName = $aClean['sVendorName'];
|
$this->sName = $aClean['sVendorName'];
|
||||||
|
|||||||
@@ -119,6 +119,11 @@ class version_queue
|
|||||||
return $this->oVersion->canEdit();
|
return $this->oVersion->canEdit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mustBeQueued()
|
||||||
|
{
|
||||||
|
return $this->oVersion->mustBeQueued();
|
||||||
|
}
|
||||||
|
|
||||||
function objectDisplayAddItemHelp()
|
function objectDisplayAddItemHelp()
|
||||||
{
|
{
|
||||||
/* $this->oVersion->displayAddItemHelp(); */
|
/* $this->oVersion->displayAddItemHelp(); */
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ function test_object_methods()
|
|||||||
"objectMakeLink",
|
"objectMakeLink",
|
||||||
"objectMakeUrl",
|
"objectMakeUrl",
|
||||||
"outputEditor",
|
"outputEditor",
|
||||||
|
"mustBeQueued"
|
||||||
);
|
);
|
||||||
|
|
||||||
$aTestClasses = array("application",
|
$aTestClasses = array("application",
|
||||||
|
|||||||
Reference in New Issue
Block a user