Properly handle queued apps with more than one version

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-06-28 14:37:38 +02:00
parent a3031b6e21
commit 9f52eca642
2 changed files with 15 additions and 0 deletions

View File

@@ -99,6 +99,18 @@ class application_queue
$this->oApp->unQueue();
$this->oVersionQueue->unQueue();
/* Has anyone submitted new versions while the app was queued?
If so we need to change their state from pending to queued */
$aOtherVersions = $this->oApp->objectGetChildrenClassSpecific('version');
foreach($aOtherVersions as $oVersion)
{
if($oVersion->objectGetState() == 'pending')
{
$oVersion->objectSetState('queued');
$oVersion->update();
}
}
}
function reQueue()