Only display delete link for distributions without any associated test data
This commit is contained in:
committed by
WineHQ
parent
4590b581c8
commit
783215a6f1
@@ -474,12 +474,14 @@ class distribution {
|
|||||||
|
|
||||||
if($this->canEdit())
|
if($this->canEdit())
|
||||||
{
|
{
|
||||||
|
if(!sizeof($this->aTestingIds))
|
||||||
|
{
|
||||||
|
$sDelete = " [<a href='".$_SERVER['PHP_SELF']."?sSub=delete&".
|
||||||
|
"iDistributionId=$this->iDistributionId'>delete</a>]";
|
||||||
|
}
|
||||||
$aCells[3] = array(
|
$aCells[3] = array(
|
||||||
"[<a href='".BASE."admin/editDistribution.php?iDistributionId=".
|
"[<a href='".BASE."admin/editDistribution.php?iDistributionId=".
|
||||||
$this->iDistributionId."'>edit</a>]".
|
$this->iDistributionId."'>edit</a>]$sDelete",
|
||||||
(!sizeof($this->aTestingIds)) ?
|
|
||||||
" [<a href='".$_SERVER['PHP_SELF']."?sSub=delete&".
|
|
||||||
"iDistributionId=$this->iDistributionId'>delete</a>]" : "",
|
|
||||||
"align=\"center\"");
|
"align=\"center\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user