Let objectManager label the edit link in objectOutputTableRow() because the edit link text
depends on the queue state
This commit is contained in:
committed by
WineHQ
parent
fc47fdabcd
commit
9ef6268fa6
@@ -438,7 +438,8 @@ class distribution {
|
||||
return new distribution($oRow->distributionId, $oRow);
|
||||
}
|
||||
|
||||
function objectOutputTableRow($oManager, $sClass)
|
||||
/* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
|
||||
function objectOutputTableRow($oManager, $sClass, $sEditLinkLabel)
|
||||
{
|
||||
$aCells = array(
|
||||
"<a href=\"".$oManager->makeUrl("view", $this->iDistributionId,
|
||||
@@ -449,13 +450,12 @@ class distribution {
|
||||
if($this->canEdit())
|
||||
{
|
||||
if(!sizeof($this->aTestingIds))
|
||||
{
|
||||
$sDelete = " [<a href='".$oManager->makeUrl("delete",
|
||||
$shDeleteLink = " [<a href='".$oManager->makeUrl("delete",
|
||||
$this->iDistributionId)."'>delete</a>]";
|
||||
}
|
||||
$aCells[3] = array(
|
||||
"[<a href='".$oManager->makeUrl("edit", $this->iDistributionId,
|
||||
"Edit Distribution")."'>edit</a>]$sDelete",
|
||||
|
||||
$aCells[] = array(
|
||||
"[<a href='".$oManager->makeUrl("edit",
|
||||
$this->iDistributionId)."'>$sEditLinkLabel</a>]$shDeleteLink",
|
||||
"align=\"center\"");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user