Skip to content

Commit

Permalink
Fix Bug# 12852: Customization per project are not handled correctly o…
Browse files Browse the repository at this point in the history
…n my view page.

Pass the bug project id to config_get and get_enum_element to get the correct configurations.
  • Loading branch information
Daryn Warriner committed Mar 11, 2011
1 parent 2ef534b commit d1abe63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/string_api.php
Expand Up @@ -584,10 +584,11 @@ function string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info
$t_link .= string_get_bug_view_url( $p_bug_id, $p_user_id ) . '"';
if( $p_detail_info ) {
$t_summary = string_attribute( bug_get_field( $p_bug_id, 'summary' ) );
$t_status = string_attribute( get_enum_element( 'status', bug_get_field( $p_bug_id, 'status' ) ) );
$t_project_id = bug_get_field( $p_bug_id, 'project_id' );
$t_status = string_attribute( get_enum_element( 'status', bug_get_field( $p_bug_id, 'status' ), $t_project_id ) );
$t_link .= ' title="[' . $t_status . '] ' . $t_summary . '"';

$t_resolved = bug_get_field( $p_bug_id, 'status' ) >= config_get( 'bug_resolved_status_threshold' );
$t_resolved = bug_get_field( $p_bug_id, 'status' ) >= config_get( 'bug_resolved_status_threshold', null, null, $t_project_id );
if( $t_resolved ) {
$t_link .= ' class="resolved"';
}
Expand Down

0 comments on commit d1abe63

Please sign in to comment.