maintainer notifications: Only check data for accepted versions

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-01-17 16:08:32 +01:00
committed by Chris Morgan
parent 351e54255c
commit 0f41ee390c
2 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ class queuedEntries
if($oVersion->objectGetState() == 'queued')
{
$this->aVersions[] = $oVersion->objectGetId();
} else // version isn't queued
} else if($oVersion->objectGetState() == 'accepted') // version isn't queued
{
// add the unqueued version to the list of versions to check for queued data
$aVersionsToCheck[] = $oVersion->iVersionId;

View File

@@ -121,8 +121,8 @@ class notifyContainer
// and will skip over queued entries that depend on this version
if(!$bTestAsMaintainer)
{
$sVersionUnqueue = "update appVersion set queued='?' where versionId = '?'";
$hResult = query_parameters($sVersionUnqueue, 'false', $this->iVersionId);
$sVersionUnqueue = "update appVersion set state='?' where versionId = '?'";
$hResult = query_parameters($sVersionUnqueue, 'accepted', $this->iVersionId);
}
// debug printing