Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f422f4dd
Commit
f422f4dd
authored
Feb 16, 2001
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for 65396:
Remember This Query should give option to add to page footer patch submitted by st.n@gmx.net (Stephan Niemz)
parent
b567f425
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
buglist.cgi
buglist.cgi
+6
-4
query.cgi
query.cgi
+6
-4
No files found.
buglist.cgi
View file @
f422f4dd
...
...
@@ -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 privile
d
ges to edit a bunch of bugs
Sorry; you do not have sufficient privileges to edit a bunch of bugs
at once.
}
;
PutFooter
();
...
...
query.cgi
View file @
f422f4dd
...
...
@@ -887,19 +887,21 @@ if (!$userid) {
</tr></table>}
;
}
print
"
print
qq{
<INPUT TYPE=radio NAME=cmdtype VALUE=asdefault> Remember this as the default query
<BR>
<INPUT TYPE=radio NAME=cmdtype VALUE=asnamed> Remember this query, and name it:
<INPUT TYPE=text NAME=newqueryname>
<br> <INPUT TYPE="checkbox" NAME="tofooter" VALUE="1">
and put it in my page footer.
<BR>
"
}
;
}
print
"
print
qq{
<NOBR><B>Sort By:</B>
<SELECT NAME=\"order\">
"
;
}
;
my
$deforder
=
"'Importance'"
;
my
@orders
=
(
'Bug Number'
,
$deforder
,
'Assignee'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment