[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-cvs
Subject:    =?UTF-8?Q?Alexander=20Nicolaysen=20?==?UTF-8?Q?S=C3=B8rnes=20?=:
From:       Chris Morgan <cmorgan () winehq ! org>
Date:       2008-01-27 17:41:47
Message-ID: E1JJBVr-0001lK-PP () wine ! codeweavers ! com
[Download RAW message or body]

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


Author: Alexander Nicolaysen Sørnes <alex@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic