When viewing a distribution, only show test results of matching state

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-04-22 22:25:05 +02:00
committed by Alexander Nicolaysen Sørnes
parent 64a9306d31
commit 1e1f1c971b

View File

@@ -692,6 +692,10 @@ class distribution {
foreach($this->aTestingIds as $iTestingId) foreach($this->aTestingIds as $iTestingId)
{ {
$oTest = new testData($iTestingId); $oTest = new testData($iTestingId);
if($oTest->objectGetState() != $this->objectGetState())
continue;
$oVersion = new Version($oTest->iVersionId); $oVersion = new Version($oTest->iVersionId);
$oApp = new Application($oVersion->iAppId); $oApp = new Application($oVersion->iAppId);
$oSubmitter = new User($oTest->iSubmitterId); $oSubmitter = new User($oTest->iSubmitterId);