application_queue, only delete version if it exists. application_queue::delete() should
check that the version object exists because when moving a duplicate application is deleted before the application
This commit is contained in:
committed by
WineHQ
parent
518def1855
commit
6f302bdc98
@@ -120,8 +120,14 @@ class application_queue
|
||||
if(!$this->oApp->delete())
|
||||
$bSuccess = FALSE;
|
||||
|
||||
if(!$this->oVersionQueue->delete())
|
||||
$bSuccess = FALSE;
|
||||
/* When deleting a duplicate app in the application queue, the version is moved
|
||||
to another app and so when application_queue::delete() is called there is
|
||||
no version child to delete, so check if the versionId is valid */
|
||||
if($this->oVersionQueue->oVersion->iVersionId)
|
||||
{
|
||||
if(!$this->oVersionQueue->delete())
|
||||
$bSuccess = FALSE;
|
||||
}
|
||||
|
||||
return $bSuccess;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user