Fix appData objectGetTableRow() to work with the new table classes
This commit is contained in:
@@ -497,14 +497,17 @@ class appData
|
|||||||
|
|
||||||
$oApp = new Application($this->iAppId);
|
$oApp = new Application($this->iAppId);
|
||||||
$oUser = new User($this->iSubmitterId);
|
$oUser = new User($this->iSubmitterId);
|
||||||
$aCells = array(
|
|
||||||
print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)),
|
|
||||||
$oUser->objectMakeLink(),
|
|
||||||
$oApp->objectMakeLink(),
|
|
||||||
$this->iVersionId ? $oVersion->objectMakeLink() : "N/A");
|
|
||||||
|
|
||||||
$oTableRow = new TableRow($aCells);
|
$oTableRow = new TableRow();
|
||||||
return $oTableRow;
|
$oTableRow->AddTextCell(print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)));
|
||||||
|
$oTableRow->AddTextCell($oUser->objectMakeLink());
|
||||||
|
$oTableRow->AddTextCell($oApp->objectMakeLink());
|
||||||
|
$oTableRow->AddTextCell($this->iVersionId ? $oVersion->objectMakeLink() : "N/A");
|
||||||
|
|
||||||
|
// create the object manager specific row
|
||||||
|
$oOMTableRow = new OMTableRow($oTableRow);
|
||||||
|
|
||||||
|
return $oOMTableRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
function objectDisplayQueueProcessingHelp()
|
function objectDisplayQueueProcessingHelp()
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ class ObjectManager
|
|||||||
//TODO: we shouldn't access this method directly, should make an accessor for it
|
//TODO: we shouldn't access this method directly, should make an accessor for it
|
||||||
if(!$this->oTableRow->oTableRow->sClass)
|
if(!$this->oTableRow->oTableRow->sClass)
|
||||||
{
|
{
|
||||||
$this->oTableRow->oTableRow->sClass = $sColor;
|
$this->oTableRow->oTableRow->SetClass($sColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if this row is clickable, make it highlight appropirately
|
// if this row is clickable, make it highlight appropirately
|
||||||
|
|||||||
@@ -199,6 +199,7 @@ class TableRow
|
|||||||
$this->aTableCells = array();
|
$this->aTableCells = array();
|
||||||
$this->sStyle = null;
|
$this->sStyle = null;
|
||||||
$this->sClass = null;
|
$this->sClass = null;
|
||||||
|
$this->sExtra = null;
|
||||||
$this->oTableRowClick = null;
|
$this->oTableRowClick = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user