]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 381837: Clicking a bug in the dependency graph will open the search page instead...
authorlpsolit%gmail.com <>
Sat, 26 May 2007 06:12:02 +0000 (06:12 +0000)
committerlpsolit%gmail.com <>
Sat, 26 May 2007 06:12:02 +0000 (06:12 +0000)
showdependencygraph.cgi

index 77259182f8e13a075351e1c647d2d8889afddd0a..ae9c2df3bae649f2d419b7df9fc951ea1094a707 100755 (executable)
@@ -65,14 +65,12 @@ sub CreateImagemap {
             $default = qq{<area alt="" shape="default" href="$1">\n};
         }
 
-        if ($line =~ /^rectangle \((.*),(.*)\) \((.*),(.*)\) (http[^ ]*)(.*)?$/) {
-            my ($leftx, $rightx, $topy, $bottomy, $url) = ($1, $3, $2, $4, $5);
+        if ($line =~ /^rectangle \((.*),(.*)\) \((.*),(.*)\) (http[^ ]*) (\d+)$/) {
+            my ($leftx, $rightx, $topy, $bottomy, $url, $bugid) = ($1, $3, $2, $4, $5, $6);
 
             # Pick up bugid from the mapdata label field. Getting the title from
             # bugtitle hash instead of mapdata allows us to get the summary even
             # when showsummary is off, and also gives us status and resolution.
-
-            my ($bugid) = ($6 =~ /^\s*(\d+)/);
             my $bugtitle = value_quote($bugtitles{$bugid});
             $map .= qq{<area alt="bug $bugid" name="bug$bugid" shape="rect" } .
                     qq{title="$bugtitle" href="$url" } .