diff --git a/include/maintainer.php b/include/maintainer.php index d0dc50c..ec151f5 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -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; diff --git a/unit_test/test_maintainer_notify.php b/unit_test/test_maintainer_notify.php index 0f46bf8..d7feabc 100644 --- a/unit_test/test_maintainer_notify.php +++ b/unit_test/test_maintainer_notify.php @@ -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