r1543: Adding the "assigned to" column to the display grid, and enable sorting
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 15 May 2007 22:02:47 +0000 (22:02 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 15 May 2007 22:02:47 +0000 (22:02 +0000)
for it

docs/changes.txt
includes/class_sort.php
includes/permissions.php

index e4f71891803a148185c1fdfbfeddad8cb7517832..3cac379c9d8c2db22640f6930c3ea1d65f379dd5 100644 (file)
@@ -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
index 06f90135a69eb1df7ffb3fcb26e895b1391c79f8..e7ed757262066d9bd4381512121951d1e85400ac 100644 (file)
@@ -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
+?>
index ea4caa0113367b1dfc9893116c0ad327cce203da..901d871044426dbea5741fb7800561502028260e 100644 (file)
@@ -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
+?>