Hide RESOLVED and CLOSED bugs unless we are displaying all bugs.

This commit is contained in:
Edwin Smulders
2007-07-22 00:49:15 +00:00
committed by WineHQ
parent 1fe90a6ed5
commit 8c2959494d

View File

@@ -287,6 +287,11 @@ class Bug {
return $sReturn; return $sReturn;
} }
function isOpen()
{
return ($this->sBug_status != 'RESOLVED' && $this->sBug_status != 'CLOSED');
}
} }
@@ -335,8 +340,11 @@ function view_version_bugs($iVersionId = null, $aBuglinkIds)
{ {
$oBuglink = new Bug($iBuglinkId); $oBuglink = new Bug($iBuglinkId);
if ( (!isset($aClean['sAllBugs']) && $oBuglink->sBug_status != 'RESOLVED') if (
|| isset($aClean['sAllBugs']) ) (!isset($aClean['sAllBugs']) && $oBuglink->isOpen() )
||
isset($aClean['sAllBugs'])
)
{ {
// set row color // set row color
$bgcolor = ($c % 2 == 0) ? "color0" : "color1"; $bgcolor = ($c % 2 == 0) ? "color0" : "color1";