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.
This commit is contained in:
Chris Morgan
2007-06-07 02:04:15 +00:00
committed by WineHQ
parent 8970888921
commit b59a1d0b1f

View File

@@ -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")