diff options
author | cyeh%bluemartini.com <> | 2000-09-19 06:29:44 +0200 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2000-09-19 06:29:44 +0200 |
commit | 826bffd4d1f022dbaf2b4e3fd094796246ec50ca (patch) | |
tree | 6c4d5cd3284ecf00084609971af2f73244f104fe /CGI.pl | |
parent | 3faeb367cba6337d86f31eba2783ced6700734a6 (diff) | |
download | bugzilla-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.pl | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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")) { |