From e14bf5af6a6ef2a2ae8590ff6efc31714b50a18d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 15 May 2007 22:02:47 +0000 Subject: [PATCH] r1543: Adding the "assigned to" column to the display grid, and enable sorting for it --- docs/changes.txt | 4 ++++ includes/class_sort.php | 9 ++++++--- includes/permissions.php | 8 +++++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index e4f7189..3cac379 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,3 +1,7 @@ +1.2.0 +=============================== +- Enhancement: Allow sorting and display of the "assigned to" column on grid display + 1.2.0 Beta 3 =============================== - Fixed: If Gettext isn't installed, a function-not-found error would be thrown diff --git a/includes/class_sort.php b/includes/class_sort.php index 06f9013..e7ed757 100644 --- a/includes/class_sort.php +++ b/includes/class_sort.php @@ -128,7 +128,8 @@ class ListSorter 'bugid' => 'bugid', 'summary' => 'summary', 'reporter' => 'userid', - 'lastpost' => (can_perform('canviewhidden') ? "lastposttime" : "hiddenlastposttime") + 'lastpost' => (can_perform('canviewhidden') ? "lastposttime" : "hiddenlastposttime"), + 'assignedto'=> 'assignedto' ); switch ($this->sortkey) @@ -137,6 +138,7 @@ class ListSorter case 'summary': case 'reporter': case 'lastpost': + case 'assignedto': $query = " SELECT bug.*, vote.votefor, vote.voteagainst FROM " . TABLE_PREFIX . "bug AS bug LEFT JOIN " . TABLE_PREFIX . "vote AS vote @@ -209,7 +211,8 @@ class ListSorter 'resolution' => _('Resolution'), 'priority' => _('Priority'), 'severity' => _('Severity'), - 'votes' => _('Votes') + 'votes' => _('Votes'), + 'assignedto' => _('Assigned To') ); if ($key === false) @@ -472,4 +475,4 @@ class ListSorter || # $Id$ || ################################################################### \*=====================================================================*/ -?> \ No newline at end of file +?> diff --git a/includes/permissions.php b/includes/permissions.php index ea4caa0..901d871 100644 --- a/includes/permissions.php +++ b/includes/permissions.php @@ -83,7 +83,8 @@ $bugsys->columns = array( 'priority' => 256, 'severity' => 512, 'lastpost' => 1024, - 'votes' => 2048 + 'votes' => 2048, + 'assignedto' => 4096 ); $bugsys->columnNames = array( @@ -98,7 +99,8 @@ $bugsys->columnNames = array( 'priority' => _('Priority'), 'severity' => _('Severity'), 'lastpost' => _('Last Post'), - 'votes' => _('Votes') + 'votes' => _('Votes'), + 'assignedto' => _('Assigned To') ); /*=====================================================================*\ @@ -107,4 +109,4 @@ $bugsys->columnNames = array( || # $Id$ || ################################################################### \*=====================================================================*/ -?> \ No newline at end of file +?> -- 2.22.5