From b59a1d0b1f42dc3f95f08326f1aeac7cfffda442 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 7 Jun 2007 02:04:15 +0000 Subject: [PATCH] Add a column to the test data queue to indicate whether a test result is for a application version that has maintainers. This lets admins defer processing test results to give appliction and version maintiners a chance to do so. --- include/testData.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/testData.php b/include/testData.php index 81125d6..1c9b5a1 100644 --- a/include/testData.php +++ b/include/testData.php @@ -897,6 +897,7 @@ class testData{ "Application", "Version", "Release", + "Has maintainer", "Rating"); return $aCells; } @@ -911,12 +912,18 @@ class testData{ $oVersion = new version($this->iVersionId); $oApp = new application($oVersion->iAppId); $oUser = new user($this->iSubmitterId); + + // + $hMaintainers = maintainer::getMaintainersForAppIdVersionId(null, $this->iVersionId); + $bHasMaintainer = (mysql_num_rows($hMaintainers) == 0) ? false : true; + $aCells = array( print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)), $oUser->objectMakeLink(), $oApp->objectMakeLink(), $oVersion->objectMakeLink(), $this->sTestedRelease, + ($bHasMaintainer ? "YES" : "no"), $this->sTestedRating); if($this->canEdit() or $this->sQueued == "rejected")