From 1e1f1c971be556864f1a30e5c246db337699e366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 22 Apr 2009 22:25:05 +0200 Subject: [PATCH] When viewing a distribution, only show test results of matching state --- include/distribution.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/distribution.php b/include/distribution.php index 539c0e9..354e585 100644 --- a/include/distribution.php +++ b/include/distribution.php @@ -692,6 +692,10 @@ class distribution { foreach($this->aTestingIds as $iTestingId) { $oTest = new testData($iTestingId); + + if($oTest->objectGetState() != $this->objectGetState()) + continue; + $oVersion = new Version($oTest->iVersionId); $oApp = new Application($oVersion->iAppId); $oSubmitter = new User($oTest->iSubmitterId);