diff options
author | lpsolit%gmail.com <> | 2007-05-26 08:10:40 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-05-26 08:10:40 +0200 |
commit | a9e044bb6659d9c380f796a45a70e3b27ec33329 (patch) | |
tree | c3786bddca6e6997a23ae90eec5fd745fe41fd44 | |
parent | 004d9a78bc692f024f95363966be1d959b59cb93 (diff) | |
download | bugzilla-a9e044bb6659d9c380f796a45a70e3b27ec33329.tar.gz bugzilla-a9e044bb6659d9c380f796a45a70e3b27ec33329.tar.xz |
Bug 381837: Clicking a bug in the dependency graph will open the search page instead of the bug - Patch by Frédéric Buclin <LpSolit@gmail.com> (original idea from Sebastian W.H. Czymaj <sczymaj@msls.de>) r=mkanat a=LpSolit
-rwxr-xr-x | showdependencygraph.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 92b6bd450..b12e65c85 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -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" } . |