From: cyeh%bluemartini.com <>
Date: Fri, 16 Feb 2001 09:22:38 +0000 (+0000)
Subject: fix for 65396:
X-Git-Tag: bugzilla-2.12~104
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f422f4dd4208a1bc90e054e18919a08ce1f47271;p=thirdparty%2Fbugzilla.git
fix for 65396:
Remember This Query should give option to add to page footer
patch submitted by st.n@gmx.net (Stephan Niemz)
---
diff --git a/buglist.cgi b/buglist.cgi
index 3752964665..00a8040e00 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();
diff --git a/query.cgi b/query.cgi
index 65a4cb29a8..032739d6d2 100755
--- a/query.cgi
+++ b/query.cgi
@@ -887,19 +887,21 @@ if (!$userid) {
};
}
- print "
+ print qq{
Remember this as the default query
Remember this query, and name it:
+
+ and put it in my page footer.
-"
+ };
}
-print "
+print qq{
Sort By: