Alexander Nicolaysen Sørnes : Remember Show All Tests when switching between test reports

Alexander Nicolaysen Sørnes asornes at winehq.org
Sun Jun 28 11:01:44 CDT 2009


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

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Jun 28 18:00:31 2009 +0200

Remember Show All Tests when switching between test reports

---

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

diff --git a/include/testData.php b/include/testData.php
index 9e54a6d..ec24d1e 100644
--- a/include/testData.php
+++ b/include/testData.php
@@ -562,7 +562,7 @@ class testData{
     }
 
     /* Creates and returns a table row for a test result table */
-    function CreateTestTableRow($iCurrentId, $sLink)
+    function CreateTestTableRow($iCurrentId, $sLink, $bShowAll)
     {
         $oVersion = new Version($this->iVersionId);
         $oApp  = new Application($oVersion->iAppId);
@@ -596,6 +596,9 @@ class testData{
 
             $sUrl = $sLink.$this->iTestingId;
 
+            if($bShowAll)
+                $sUrl .= '&bShowAll=true';
+
             $oTableRowClick = new TableRowClick($sUrl);
             $oTableRowClick->SetHighlight($oTableRowHighlight);
 
@@ -678,7 +681,7 @@ class testData{
         while($oRow = query_fetch_object($hResult))
         {
             $oTest = new testData($oRow->testingId);
-            $oTableRow = $oTest->CreateTestTableRow($this->iTestingId, $sLink);
+            $oTableRow = $oTest->CreateTestTableRow($this->iTestingId, $sLink, $bShowAll);
             // add the row to the table
             $oTable->AddRow($oTableRow);
 




More information about the wine-cvs mailing list