Alexander Nicolaysen Sørnes : Improve edit/delete links for a version's test results list

Chris Morgan cmorgan at winehq.org
Sun Jan 27 11:41:47 CST 2008


Module: appdb
Branch: master
Commit: cd7aa0fdb58242dadc66a0d7529b87e6ff314f4f
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=cd7aa0fdb58242dadc66a0d7529b87e6ff314f4f

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Jan 27 18:39:16 2008 +0100

Improve edit/delete links for a version's test results list

---

 include/testData.php |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/include/testData.php b/include/testData.php
index cfa06fd..d75ee93 100644
--- a/include/testData.php
+++ b/include/testData.php
@@ -613,13 +613,12 @@ class testData{
         $oTableRow->AddTextCell($oSubmitter->objectMakeLink().'&nbsp');
         if ($this->iTestingId && $_SESSION['current']->hasAppVersionModifyPermission($oVersion))
         {
-            $oObject = new objectManager("testData");
-            $oTableRow->AddTextCell('<a href="'.$oObject->makeUrl("edit", $this->iTestingId,
-                                    "Edit Test Results").'">'.
-                                    'Edit</a> &nbsp; ',"\n".
-                                    '<a href="objectManager.php?sClass=testData&bIsQueue=false&sAction='.
-                                    'delete&iId='.$this->iTestingId.'&sTitle=Delete+Test+Results'.
-                                    '">Delete</a></td>',"\n");
+            $oObject = new objectManager('testData');
+            $oTableRow->AddTextCell('<a href="'.$oObject->makeUrl('edit', $this->iTestingId,
+                                    'Edit Test Results').'&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">'.
+                                    'Edit</a> &nbsp; '."\n".
+                                    '<a href="'.$oObject->makeUrl('delete', $this->iTestingId, 'Delete+Test+Results').
+                                    '&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">Delete</a></td>'."\n");
         }
 
         // if this is a clickable row, set the appropriate property




More information about the wine-cvs mailing list