Skip to content

Commit

Permalink
Fix #10022: changes from commit a2294e9 caused duplicates in the tag …
Browse files Browse the repository at this point in the history
…selection list for tags attached to multiple bugs.
  • Loading branch information
amyreese committed Jan 8, 2009
1 parent eaab5fd commit 8643197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tag_api.php
Expand Up @@ -413,7 +413,7 @@ function tag_get_candidates_for_bug( $p_bug_id ) {
$t_params = array();
if ( 0 != $p_bug_id ) {
$t_bug_tag_table = db_get_table( 'mantis_bug_tag_table' );
$query = 'SELECT t.id, t.name, t.description FROM ' .
$query = 'SELECT DISTINCT t.id, t.name, t.description FROM ' .
$t_bug_tag_table .
' t2 LEFT JOIN ' . $t_tag_table . ' t ON t.id = t2.tag_id WHERE NOT bug_id = ' . db_param();
$t_params[] = $p_bug_id;
Expand Down

0 comments on commit 8643197

Please sign in to comment.