From 0fd77abe800b2424babf3ea2151b3cd4a66ad3de Mon Sep 17 00:00:00 2001 From: Julian Fitzell Date: Tue, 25 Mar 2003 09:56:32 +0000 Subject: [PATCH] Fix #3080: project menu bar shows extra links * core/html_api.php (print_project_menu_bar): add a DISTINCT clause to the query that pulls out the list of projects (we should be able to use the project_api functions for this. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2126 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- core/html_api.php | 4 ++-- doc/ChangeLog | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/html_api.php b/core/html_api.php index c48c0147d9..963c920841 100644 --- a/core/html_api.php +++ b/core/html_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: html_api.php,v 1.72 2003-03-24 06:26:42 jfitzell Exp $ + # $Id: html_api.php,v 1.73 2003-03-25 09:56:31 jfitzell Exp $ # -------------------------------------------------------- ########################################################################### @@ -414,7 +414,7 @@ function print_project_menu_bar() { WHERE p.enabled=1 ORDER BY p.name"; } else { - $query = "SELECT p.id, p.name + $query = "SELECT DISTINCT(p.id), p.name FROM $t_project_table p, $t_project_user_list_table u WHERE p.enabled=1 AND p.id=u.project_id diff --git a/doc/ChangeLog b/doc/ChangeLog index e7aa38d7a3..c61dd398b6 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -5,6 +5,7 @@ Mantis ChangeLog * Fix: Improved adherance to the XHTML standard. * Fix #3072: Attached file should be opened up in a new browser window. * Fix #3064: view bug buttons in vertical column + * Fix #3080: project menu bar shows extra links 2003.03.22 - 0.18.0a4