Remember Show All Tests when switching between test reports

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-06-28 18:00:31 +02:00
parent 5081bc0a48
commit 7861ff1cb5

View File

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