]> 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:35:46 +0000 (23:35 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 5 May 2013 21:35:46 +0000 (23:35 +0200)
r=dkl a=LpSolit

report.cgi

index 7bff62be9443cc8084dbefc7469707af65a5c3d8..c73f52b44506077cf3a8332c77461538eaca6367 100755 (executable)
@@ -323,7 +323,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) {
@@ -352,6 +352,7 @@ sub check_value {
     else {
         $value = shift @$result;
         $value = ' ' if (!defined $value || $value eq '');
+        $value = '---' if ($field eq 'resolution' && $value eq ' ');
     }
     return $value;
 }