View Issue Details

IDProjectCategoryView StatusLast Update
0003310mantisbtbugtrackerpublic2003-12-13 04:35
Reporterjoakimwg Assigned Tovboctor  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.0rc1 
Summary0003310: Sorting of projects in menu bar
Description

In version 0.18.0a4 and earlier the projects in the menu bar was sorted by name, since version 0.18.0rc1 they are sorted by id instead.

This is probably fine if there aren't that many project, in our installation we have 50+ projects this makes it pretty hard to find a specific project in the drop down menu.

Is this something that could be customized, to sort by id of name, or should it be reverted back to the way it was before?

TagsNo tags attached.
Attached Files
order_projects.diff (772 bytes)   
Index: core/user_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/user_api.php,v
retrieving revision 1.59
diff -u -r1.59 user_api.php
--- core/user_api.php	23 May 2003 11:52:27 -0000	1.59
+++ core/user_api.php	25 Aug 2003 22:21:01 -0000
@@ -478,7 +478,7 @@
 			$query = "SELECT DISTINCT( id )
 					  FROM $t_project_table
 					  WHERE enabled=1
-					  ORDER BY id";
+					  ORDER BY name";
 		} else {
 			$query = "SELECT DISTINCT( p.id )
 					  FROM $t_project_table p
@@ -488,7 +488,7 @@
 					    OR (p.view_state='$t_private'
 						    AND
 					        u.user_id='$c_user_id')
-					  ORDER BY p.id";
+					  ORDER BY p.name";
 		}
 
 		$result = db_query( $query );
order_projects.diff (772 bytes)   

Relationships

has duplicate 0003386 closedvboctor Sort project dropdown alphabetically 
has duplicate 0003434 closedvboctor Sort by name in project option list 
has duplicate 0003453 closedvboctor Project-List is not sorted in alphabetical order 

Activities

vboctor

vboctor

2003-08-26 00:29

manager   ~0004567

Fixed in CVS, will be available in next release. I also attached the patch for the fix.

Related Changesets

MantisBT: master 3d89afef

2003-08-25 18:24

vboctor


Details Diff
Fix 0003310: Sorting of projects in menu bar.

M core/user_api.php
- Sort projects accessible to user by name rather than by id.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2258 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003310
mod - doc/ChangeLog Diff File
mod - core/user_api.php Diff File