From: lpsolit%gmail.com <> Date: Sat, 26 May 2007 06:12:02 +0000 (+0000) Subject: Bug 381837: Clicking a bug in the dependency graph will open the search page instead... X-Git-Tag: bugzilla-3.0.1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1402c945959da8b47ab4f93613c785ee28a2a500;p=thirdparty%2Fbugzilla.git Bug 381837: Clicking a bug in the dependency graph will open the search page instead of the bug - Patch by Frédéric Buclin (original idea from Sebastian W.H. Czymaj ) r=mkanat a=LpSolit --- diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 77259182f8..ae9c2df3ba 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -65,14 +65,12 @@ sub CreateImagemap { $default = qq{\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{