From 504bec868c5f4741c1819e3d08ca0f873c2cdeed Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 10 Dec 2006 00:16:51 +0000 Subject: [PATCH] r1343: - Get bug id to sort right - The sort image would only display if it was sorted by the last item in a set, now it does it for any item --- includes/class_sort.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class_sort.php b/includes/class_sort.php index b260c32..4d47d6f 100644 --- a/includes/class_sort.php +++ b/includes/class_sort.php @@ -125,7 +125,7 @@ class ListSorter // remap the sort keys to be actual SQL fields $querykeys = array( - 'id' => 'bugid', + 'bugid' => 'bugid', 'summary' => 'summary', 'reporter' => 'userid', 'lastpost' => (can_perform('canviewhidden') ? "lastposttime" : "hiddenlastposttime") @@ -133,7 +133,7 @@ class ListSorter switch ($this->sortkey) { - case 'id': + case 'bugid': case 'summary': case 'reporter': case 'lastpost': @@ -181,7 +181,7 @@ class ListSorter $keys = array( 'lastpost' => _('Last Post Time'), - 'id' => _('Bug ID'), + 'bugid' => _('Bug ID'), 'summary' => _('Summary'), 'reporter' => _('Reporter'), 'product' => _('Product'), @@ -344,7 +344,7 @@ class ListSorter { $build[] = ($sortable ? '' . $this->registry->columnNames["$column"] . '' : $this->registry->columnNames["$column"]); } - $image = ($this->sortkey == $column ? $this->fetch_sort_image() : ''); + $image = (in_array($this->sortkey, $columns) ? $this->fetch_sort_image() : ''); $name = implode(' / ', $build); eval('$output .= "' . $this->registry->template->fetch('list_head') . '";'); } -- 2.22.5