Get rid of the distribution queue. If a testData entry is deleted and its associated
distribution has not been approved and has no other testData assigned to it the distribution is now deleted. This change makes the distribution queue unnecessary as distributions are accepted along the testData
This commit is contained in:
committed by
WineHQ
parent
eb49e9344d
commit
d09f78ca00
@@ -24,7 +24,17 @@ class testData_queue
|
||||
|
||||
function delete()
|
||||
{
|
||||
return $this->oTestData->delete();
|
||||
$bSuccess = $this->oTestData->delete();
|
||||
|
||||
/* We delete the distribution if it has not been approved and is not associated
|
||||
with any other testData. Otherwise we would have to have a distribution
|
||||
queue for admins to clean up unused, queued entries */
|
||||
$this->oDistribution = new distribution($this->oDistribution->iDistributionId);
|
||||
if(!sizeof($this->oDistribution->aTestingIds) &&
|
||||
$this->oDistribution->sQueued != "false")
|
||||
$this->oDistribution->delete();
|
||||
|
||||
return $bSuccess;
|
||||
}
|
||||
|
||||
function reQueue()
|
||||
|
||||
Reference in New Issue
Block a user