]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 212471: Tabular reports do not link bug counts involving the empty resolution...
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 5 May 2013 21:32:24 +0000 (23:32 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 5 May 2013 21:32:24 +0000 (23:32 +0200)
r=dkl a=LpSolit

report.cgi

index 5e51bd34a6b6ca21c799e8020148c2938ca612ab..3a1130f2df59f366d8236b98210f9f4e7be460bc 100755 (executable)
@@ -352,7 +352,7 @@ sub get_names {
         foreach my $value (@{$field->legal_values}) {
             push(@sorted, $value->name) if $names->{$value->name};
         }
-        unshift(@sorted, ' ') if $field_name eq 'resolution';
+        unshift(@sorted, '---') if $field_name eq 'resolution';
         @sorted = uniq @sorted;
     }  
     elsif ($isnumeric) {
@@ -381,6 +381,7 @@ sub check_value {
     else {
         $value = shift @$result;
         $value = ' ' if (!defined $value || $value eq '');
+        $value = '---' if ($field eq 'resolution' && $value eq ' ');
     }
     return $value;
 }