Skip to content

Commit

Permalink
Fix typo in sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Mar 6, 2012
1 parent a714962 commit 9604e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/custom_field_api.php
Expand Up @@ -1164,9 +1164,9 @@ function custom_field_distinct_values( $p_field_def, $p_project_id = ALL_PROJECT
$t_where = '';
$t_from = '{custom_field_string}';
if( ALL_PROJECTS != $p_project_id ) {
$t_where = " AND {mantis_bug}.id = {custom_field_string}.bug_id AND
{mantis_bug}.project_id = '$p_project_id'";
$t_from = $t_from . ", {mantis_bug}";
$t_where = " AND {bug}.id = {custom_field_string}.bug_id AND
{bug}.project_id = '$p_project_id'";
$t_from = $t_from . ", {bug}";
}
$t_query2 = "SELECT {custom_field_string}.value FROM $t_from
WHERE {custom_field_string}.field_id='$c_field_id' $t_where
Expand Down

0 comments on commit 9604e1f

Please sign in to comment.