Show if an Application has a Super Maintainer
This commit is contained in:
committed by
Chris Morgan
parent
6c2a45f106
commit
b074048c57
@@ -1427,6 +1427,7 @@ class version {
|
|||||||
$oTableRow->AddTextCell("Vendor");
|
$oTableRow->AddTextCell("Vendor");
|
||||||
$oTableRow->AddTextCell("Application");
|
$oTableRow->AddTextCell("Application");
|
||||||
$oTableRow->AddTextCell("Version");
|
$oTableRow->AddTextCell("Version");
|
||||||
|
$oTableRow->AddTextCell("Has Super Maintainer");
|
||||||
return $oTableRow;
|
return $oTableRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1536,12 +1537,19 @@ class version {
|
|||||||
$oApp = new application($this->iAppId);
|
$oApp = new application($this->iAppId);
|
||||||
$oVendor = new vendor($oApp->iVendorId);
|
$oVendor = new vendor($oApp->iVendorId);
|
||||||
|
|
||||||
|
$aSuper_maintainers = Maintainer::getSuperMaintainersUserIdsFromAppId($this->iAppId);
|
||||||
|
if($aSuper_maintainers)
|
||||||
|
$bHasSuperMaintainer = true;
|
||||||
|
else
|
||||||
|
$bHasSuperMaintainer = false;
|
||||||
|
|
||||||
$oTableRow = new TableRow();
|
$oTableRow = new TableRow();
|
||||||
$oTableRow->AddTextCell(print_date(mysqldatetime_to_unixtimestamp($this->sSubmitTime)));
|
$oTableRow->AddTextCell(print_date(mysqldatetime_to_unixtimestamp($this->sSubmitTime)));
|
||||||
$oTableRow->AddTextCell($oUser->objectMakeLink());
|
$oTableRow->AddTextCell($oUser->objectMakeLink());
|
||||||
$oTableRow->AddTextCell($oVendor->objectMakeLink());
|
$oTableRow->AddTextCell($oVendor->objectMakeLink());
|
||||||
$oTableRow->AddTextCell($oApp->objectMakeLink());
|
$oTableRow->AddTextCell($oApp->objectMakeLink());
|
||||||
$oTableRow->AddTextCell($this->sName);
|
$oTableRow->AddTextCell($this->sName);
|
||||||
|
$oTableRow->AddCell(new TableCell($bHasSuperMaintainer ? "Yes" : "No"));
|
||||||
|
|
||||||
$oOMTableRow = new OMTableRow($oTableRow);
|
$oOMTableRow = new OMTableRow($oTableRow);
|
||||||
return $oOMTableRow;
|
return $oOMTableRow;
|
||||||
|
|||||||
Reference in New Issue
Block a user