summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2001-02-16 10:22:38 +0100
committercyeh%bluemartini.com <>2001-02-16 10:22:38 +0100
commitf422f4dd4208a1bc90e054e18919a08ce1f47271 (patch)
tree83e4d4bb242e83abea7c1ef7db8946db57c26f74 /buglist.cgi
parentb567f4256283d1865d2517bde2293da0365e1a24 (diff)
downloadbugzilla-f422f4dd4208a1bc90e054e18919a08ce1f47271.tar.gz
bugzilla-f422f4dd4208a1bc90e054e18919a08ce1f47271.tar.xz
fix for 65396:
Remember This Query should give option to add to page footer patch submitted by st.n@gmx.net (Stephan Niemz)
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi10
1 files changed, 6 insertions, 4 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 375296466..00a8040e0 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -730,13 +730,15 @@ individual query.
}
$::buffer =~ s/[\&\?]cmdtype=[a-z]+//;
my $qname = SqlQuote($name);
+ my $tofooter= ( $::FORM{'tofooter'} ? 1 : 0 );
SendSQL("SELECT query FROM namedqueries " .
"WHERE userid = $userid AND name = $qname");
if (!FetchOneColumn()) {
- SendSQL("REPLACE INTO namedqueries (userid, name, query) " .
- "VALUES ($userid, $qname, " . SqlQuote($::buffer) . ")");
+ SendSQL("REPLACE INTO namedqueries (userid, name, query, linkinfooter) " .
+ "VALUES ($userid, $qname, ". SqlQuote($::buffer) .", ". $tofooter .")");
} else {
- SendSQL("UPDATE namedqueries SET query = " . SqlQuote($::buffer) .
+ SendSQL("UPDATE namedqueries SET query = " . SqlQuote($::buffer) . "," .
+ " linkinfooter = " . $tofooter .
" WHERE userid = $userid AND name = $qname");
}
PutHeader("OK, query saved.");
@@ -838,7 +840,7 @@ if ($dotweak) {
confirm_login();
if (!UserInGroup("editbugs")) {
print qq{
-Sorry; you do not have sufficient priviledges to edit a bunch of bugs
+Sorry; you do not have sufficient privileges to edit a bunch of bugs
at once.
};
PutFooter();