Add 'View Test Results' entry to admin sidebar. Enable testData deletion so we can either edit
or delete a given test entry.
This commit is contained in:
@@ -32,6 +32,9 @@ function global_admin_menu() {
|
|||||||
BASE."admin/adminMaintainers.php");
|
BASE."admin/adminMaintainers.php");
|
||||||
$g->add("View Bug Links (".getNumberOfQueuedBugLinks()."/".getNumberOfBugLinks().")",
|
$g->add("View Bug Links (".getNumberOfQueuedBugLinks()."/".getNumberOfBugLinks().")",
|
||||||
BASE."admin/adminBugs.php");
|
BASE."admin/adminBugs.php");
|
||||||
|
$g->add("View Test Results (".testData::objectGetEntriesCount(false, false).")",
|
||||||
|
BASE."objectManager.php?sClass=testData&bIsQueue=false&sTitle=".
|
||||||
|
"View%20Test%20Results");
|
||||||
$g->add("Users Management", BASE."admin/adminUsers.php");
|
$g->add("Users Management", BASE."admin/adminUsers.php");
|
||||||
$g->add("Comments Management", BASE."admin/adminCommentView.php");
|
$g->add("Comments Management", BASE."admin/adminCommentView.php");
|
||||||
$g->add("Screenshots Management", BASE."admin/adminScreenshots.php");
|
$g->add("Screenshots Management", BASE."admin/adminScreenshots.php");
|
||||||
|
|||||||
@@ -936,8 +936,13 @@ class testData{
|
|||||||
|
|
||||||
if($this->canEdit() or $this->sQueued == "rejected")
|
if($this->canEdit() or $this->sQueued == "rejected")
|
||||||
{
|
{
|
||||||
|
$shDeleteLink = "[ <a href=\"".$oObject->makeUrl("delete",
|
||||||
|
$this->iTestingId).
|
||||||
|
"\"> delete</a> ]";
|
||||||
|
|
||||||
$aCells[] = "[ <a href=\"".$oObject->makeUrl("edit",
|
$aCells[] = "[ <a href=\"".$oObject->makeUrl("edit",
|
||||||
$this->iTestingId)."\">$sEditLinkLabel</a> ]";
|
$this->iTestingId)."\">$sEditLinkLabel</a> ]".
|
||||||
|
$shDeleteLink;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo html_tr($aCells, $this->sTestedRating);
|
echo html_tr($aCells, $this->sTestedRating);
|
||||||
|
|||||||
Reference in New Issue
Block a user