summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2000-09-19 06:29:44 +0200
committercyeh%bluemartini.com <>2000-09-19 06:29:44 +0200
commit826bffd4d1f022dbaf2b4e3fd094796246ec50ca (patch)
tree6c4d5cd3284ecf00084609971af2f73244f104fe /CGI.pl
parent3faeb367cba6337d86f31eba2783ced6700734a6 (diff)
downloadbugzilla-826bffd4d1f022dbaf2b4e3fd094796246ec50ca.tar.gz
bugzilla-826bffd4d1f022dbaf2b4e3fd094796246ec50ca.tar.xz
fix for 52228: Bug list title should be name of query if running named query
patch by dave@intrec.com (Dave Miller)
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/CGI.pl b/CGI.pl
index a1ced72ea..71ed43e1c 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -1075,11 +1075,12 @@ sub GetCommandMenu {
my $mybugsurl = PerformSubsts($mybugstemplate, \%substs);
$html = $html . " | <A HREF='$mybugsurl'><NOBR>My bugs</NOBR></A>";
}
- SendSQL("SELECT name,query FROM namedqueries " .
+ SendSQL("SELECT name FROM namedqueries " .
"WHERE userid = $userid AND linkinfooter");
while (MoreSQLData()) {
- my ($name, $query) = (FetchSQLData());
- $html .= qq{ | <A HREF="buglist.cgi?$query"><NOBR>$name</NOBR></A>};
+ my ($name) = (FetchSQLData());
+ $html .= " | <A HREF=\"buglist.cgi?&cmdtype=runnamed&namedcmd=" .
+ url_quote($name) . "\"><NOBR>$name</NOBR></A>";
}
$html .= " | <NOBR>Edit <a href='userprefs.cgi'>prefs</a></NOBR>";
if (UserInGroup("tweakparams")) {