maintainer notifications: Only check data for accepted versions
This commit is contained in:
committed by
Chris Morgan
parent
351e54255c
commit
0f41ee390c
@@ -73,7 +73,7 @@ class queuedEntries
|
|||||||
if($oVersion->objectGetState() == 'queued')
|
if($oVersion->objectGetState() == 'queued')
|
||||||
{
|
{
|
||||||
$this->aVersions[] = $oVersion->objectGetId();
|
$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
|
// add the unqueued version to the list of versions to check for queued data
|
||||||
$aVersionsToCheck[] = $oVersion->iVersionId;
|
$aVersionsToCheck[] = $oVersion->iVersionId;
|
||||||
|
|||||||
@@ -121,8 +121,8 @@ class notifyContainer
|
|||||||
// and will skip over queued entries that depend on this version
|
// and will skip over queued entries that depend on this version
|
||||||
if(!$bTestAsMaintainer)
|
if(!$bTestAsMaintainer)
|
||||||
{
|
{
|
||||||
$sVersionUnqueue = "update appVersion set queued='?' where versionId = '?'";
|
$sVersionUnqueue = "update appVersion set state='?' where versionId = '?'";
|
||||||
$hResult = query_parameters($sVersionUnqueue, 'false', $this->iVersionId);
|
$hResult = query_parameters($sVersionUnqueue, 'accepted', $this->iVersionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// debug printing
|
// debug printing
|
||||||
|
|||||||
Reference in New Issue
Block a user