diff options
author | gerv%gerv.net <> | 2002-05-09 02:58:06 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-05-09 02:58:06 +0200 |
commit | 7169a4d73930695b53791d6e01cda92a9c47cbd9 (patch) | |
tree | 7c72b2e3d2736f7daacaaeecec80dad943286571 | |
parent | 35f72f6548eafd7bdc638439c040355d332600d1 (diff) | |
download | bugzilla-7169a4d73930695b53791d6e01cda92a9c47cbd9.tar.gz bugzilla-7169a4d73930695b53791d6e01cda92a9c47cbd9.tar.xz |
Bug 142950 - query links in footer are broken. Patch by gerv; r=ddk, afranke.
-rwxr-xr-x | buglist.cgi | 7 | ||||
-rw-r--r-- | template/en/default/global/useful-links.html.tmpl | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/buglist.cgi b/buglist.cgi index 4c1719d99..1dfe52e5a 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -1124,7 +1124,7 @@ CMD: for ($::FORM{'cmdtype'}) { # Don't add it to the list if they are reusing an existing query name. foreach my $query (@{$vars->{'user'}{'queries'}}) { - if ($query->{'name'} eq $name) { + if ($query->{'name'} eq $name && $query->{'linkinfooter'} == 1) { $new_in_footer = 0; } } @@ -1132,7 +1132,10 @@ CMD: for ($::FORM{'cmdtype'}) { print "Content-Type: text/html\n\n"; # Generate and return the UI (HTML page) from the appropriate template. if ($new_in_footer) { - push(@{$vars->{'user'}{'queries'}}, {name => $name}); + my %query = (name => $name, + query => $::buffer, + linkinfooter => $tofooter); + push(@{$vars->{'user'}{'queries'}}, \%query); } $vars->{'title'} = "OK, query saved."; diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index 90704de1c..5db6333ed 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -97,7 +97,7 @@ <td colspan="3"> [% IF user.showmybugslink %] - <a href="buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=[% user.name FILTER url_quote %]&emailtype1=exact&emailassigned_to1=1&emailreporter1=1">My Bugs + <a href="buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=[% user.login FILTER url_quote %]&emailtype1=exact&emailassigned_to1=1&emailreporter1=1">My Bugs </a> [% print_pipe = 1 %] [% END %] @@ -105,7 +105,7 @@ [% FOREACH q = user.queries %] [% IF q.linkinfooter %] [% " | " IF print_pipe %] - <a href="buglist.cgi?cmdtype=runnamed&namedcmd=[% q FILTER url_quote %]">[% q.name FILTER no_break FILTER html %] + <a href="buglist.cgi?cmdtype=runnamed&namedcmd=[% q.name FILTER url_quote %]">[% q.name FILTER html FILTER no_break %] </a> [% print_pipe = 1 %] [% END %] |