version: Add 'pending' queue state

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-11-06 23:27:33 +01:00
committed by Chris Morgan
parent da471d1ad8
commit 62e3a98fca
3 changed files with 7 additions and 4 deletions

View File

@@ -92,7 +92,11 @@ class version {
if(!$_SESSION['current']->canCreateVersion())
return;
$this->sQueued = $this->mustBeQueued() ? "true" : "false";
$oApp = new application($this->iAppId);
if($oApp->sQueued != "false")
$this->sQueued = "pending";
else
$this->sQueued = $this->mustBeQueued() ? "true" : "false";
$hResult = query_parameters("INSERT INTO appVersion
(versionName, description, maintainer_release,
@@ -274,7 +278,7 @@ class version {
return;
// If we are not in the queue, we can't move the version out of the queue.
if(!$this->sQueued == 'true')
if($this->sQueued == 'false')
return false;
if(query_parameters("UPDATE appVersion SET queued = '?' WHERE versionId = '?'",