ChangeSet ID: 31259 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/07/21 19:49:15 Modified files: include : bugs.php Log message: Edwin Smulders <edwin.smulders(a)gmail.com> Hide RESOLVED and CLOSED bugs unless we are displaying all bugs. Patch: http://cvs.winehq.org/patch.py?id=31259 Old revision New revision Changes Path 1.26 1.27 +10 -2 appdb/include/bugs.php Index: appdb/include/bugs.php diff -u -p appdb/include/bugs.php:1.26 appdb/include/bugs.php:1.27 --- appdb/include/bugs.php:1.26 22 Jul 2007 0:49:15 -0000 +++ appdb/include/bugs.php 22 Jul 2007 0:49:15 -0000 @@ -287,6 +287,11 @@ class Bug { return $sReturn; } + + function isOpen() + { + return ($this->sBug_status != 'RESOLVED' && $this->sBug_status != 'CLOSED'); + } } @@ -335,8 +340,11 @@ function view_version_bugs($iVersionId = { $oBuglink = new Bug($iBuglinkId); - if ( (!isset($aClean['sAllBugs']) && $oBuglink->sBug_status != 'RESOLVED') - || isset($aClean['sAllBugs']) ) + if ( + (!isset($aClean['sAllBugs']) && $oBuglink->isOpen() ) + || + isset($aClean['sAllBugs']) + ) { // set row color $bgcolor = ($c % 2 == 0) ? "color0" : "color1";