From a83737ab0b5025678b84a1f4112aa9541b3784fb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 1 Aug 2006 05:18:27 +0000 Subject: [PATCH] r1000: Changing the way we look for hidden statuses in the various options --- includes/class_sort.php | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class_sort.php b/includes/class_sort.php index b41e607..97861b7 100644 --- a/includes/class_sort.php +++ b/includes/class_sort.php @@ -114,7 +114,7 @@ class ListSorter // this WHERE clause is used for all the queries $basewhere = "bug.product IN (" . fetch_on_bits('canviewbugs') . ") AND (!bug.hidden OR (bug.hidden AND bug.product IN (" . fetch_on_bits('canviewhidden') . ")))" . (($this->registry->options['hidestatuses'] OR isset($this->registry->userinfo['hidestatuses'])) ? " - AND bug.status NOT IN (" . (isset($this->registry->userinfo['hidestatuses']) ? $this->registry->userinfo['hidestatuses'] : $this->registry->options['hidestatuses']) . ")" : ""); + AND bug.status NOT IN (" . ($this->registry->userinfo['hidestatuses'] != '' ? $this->registry->userinfo['hidestatuses'] : $this->registry->options['hidestatuses']) . ")" : ""); // remap the sort keys to be actual SQL fields $querykeys = array( diff --git a/index.php b/index.php index 03a97b2..8188c3f 100644 --- a/index.php +++ b/index.php @@ -49,7 +49,7 @@ $count = $db->query_first(" FROM " . TABLE_PREFIX . "bug WHERE (!hidden OR (hidden AND product IN (" . fetch_on_bits('canviewhidden') . "))) AND product IN (" . fetch_on_bits('canviewbugs') . ")" . (($bugsys->options['hidestatuses'] OR isset($bugsys->userinfo['hidestatuses'])) ? " - AND status NOT IN (" . (isset($bugsys->userinfo['hidestatuses']) ? $bugsys->userinfo['hidestatuses'] : $bugsys->options['hidestatuses']) . ")" : "") + AND status NOT IN (" . ($bugsys->userinfo['hidestatuses'] != '' ? $bugsys->userinfo['hidestatuses'] : $bugsys->options['hidestatuses']) . ")" : "") ); $pagination->total = $count['count']; -- 2.22.5