From: Don Armstrong Date: Thu, 24 Jul 2008 15:53:13 +0000 (-0700) Subject: * Fix display of distributions in the version graph X-Git-Tag: release/2.6.0~488^2~29 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=17c8a729b2c8b0d8a78db798789bc0810e8a45fb;p=debbugs.git * Fix display of distributions in the version graph --- diff --git a/cgi/version.cgi b/cgi/version.cgi index 7e19e9e..01db818 100755 --- a/cgi/version.cgi +++ b/cgi/version.cgi @@ -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;