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
@@ -185,7 +185,8 @@ class Vendor {
|
||||
return new vendor($oRow->vendorId, $oRow);
|
||||
}
|
||||
|
||||
function objectOutputTableRow($oObject, $sClass = "")
|
||||
/* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
|
||||
function objectOutputTableRow($oObject, $sClass = "", $sEditLinkLabel)
|
||||
{
|
||||
$aCells = array(
|
||||
"<a href=\"".$oObject->makeUrl("view", $this->iVendorId,
|
||||
@@ -196,12 +197,12 @@ class Vendor {
|
||||
if($this->canEdit())
|
||||
{
|
||||
if(!sizeof($this->aApplicationsIds))
|
||||
$sDelete = " [<a href=\"".$oObject->makeUrl("delete",
|
||||
$shDeleteLink = " [<a href=\"".$oObject->makeUrl("delete",
|
||||
$this->iVendorId, "View Vendors")."\">".
|
||||
"delete</a>]";
|
||||
|
||||
$aCells[sizeof($aCells)] = "[<a href=\"".$oObject->makeUrl("edit",
|
||||
$this->iVendorId, "Edit Vendor")."\">edit</a>]$sDelete";
|
||||
$this->iVendorId, "Edit Vendor")."\">$sEditLinkLabel</a>]$shDeleteLink";
|
||||
}
|
||||
|
||||
echo html_tr($aCells, $sClass);
|
||||
|
||||
Reference in New Issue
Block a user