]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Fix display of distributions in the version graph
authorDon Armstrong <don@donarmstrong.com>
Thu, 24 Jul 2008 15:53:13 +0000 (08:53 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 24 Jul 2008 15:53:13 +0000 (08:53 -0700)
cgi/version.cgi

index 7e19e9e118c79435de57b76e7a505f0d6f1eba42..01db818528b1177d2364e3124572d7e470d9f27b 100755 (executable)
@@ -241,8 +241,8 @@ foreach my $key (keys %all_states) {
                                          or $all_states{$key} eq 'absent');
      next if $cgi_var{ignore_boring} and not version_relevant($version,$key,\@interesting_versions);
      my @attributes = @{$state{$all_states{$key}}};
-     if (length $short_version and exists $version_to_dist{$short_version}) {
-         push @attributes, 'label="'.$key.'\n'."(".join(', ',@{$version_to_dist{$short_version}}).")\"";
+     if (exists $version_to_dist{$key}) {
+         push @attributes, 'label="'.$key.'\n'."(".join(', ',@{$version_to_dist{$key}}).")\"";
      }
      my $node_attributes = qq("$key" [).join(',',@attributes).qq(]\n);
      $dot .= $node_attributes;