Commit e8f4b8b0 authored by Marc Schumann's avatar Marc Schumann

Bug 853638 - Status and resolution values in dependency graphs not localizable.

r=dkl, a=sgreen
parent d65d0102
...@@ -21,7 +21,7 @@ use parent qw(Exporter); ...@@ -21,7 +21,7 @@ use parent qw(Exporter);
format_time validate_date validate_time datetime_from format_time validate_date validate_time datetime_from
is_7bit_clean bz_crypt generate_random_password is_7bit_clean bz_crypt generate_random_password
validate_email_syntax check_email_syntax clean_text validate_email_syntax check_email_syntax clean_text
get_text template_var disable_utf8 get_text template_var display_value disable_utf8
detect_encoding email_filter detect_encoding email_filter
join_activity_entries); join_activity_entries);
......
...@@ -180,7 +180,7 @@ foreach my $k (@bug_ids) { ...@@ -180,7 +180,7 @@ foreach my $k (@bug_ids) {
# Resolution and summary are shown only if user can see the bug # Resolution and summary are shown only if user can see the bug
if (!$user->can_see_bug($k)) { if (!$user->can_see_bug($k)) {
$resolution = $summary = ''; $summary = '';
} }
$vars->{'short_desc'} = $summary if ($k eq $cgi->param('id')); $vars->{'short_desc'} = $summary if ($k eq $cgi->param('id'));
...@@ -213,7 +213,9 @@ foreach my $k (@bug_ids) { ...@@ -213,7 +213,9 @@ foreach my $k (@bug_ids) {
# Push the bug tooltip texts into a global hash so that # Push the bug tooltip texts into a global hash so that
# CreateImagemap sub (used with local dot installations) can # CreateImagemap sub (used with local dot installations) can
# use them later on. # use them later on.
$bugtitles{$k} = trim("$stat $resolution"); my $stat_display = display_value('bug_status', $stat);
my $resolution_display = display_value('resolution', $resolution);
$bugtitles{$k} = trim("$stat_display $resolution_display");
# Show the bug summary in tooltips only if not shown on # Show the bug summary in tooltips only if not shown on
# the graph and it is non-empty (the user can see the bug) # the graph and it is non-empty (the user can see the bug)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment