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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
5480fdda
You need to sign in or sign up before continuing.
Commit
5480fdda
authored
Jun 18, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 152541 - After deleting remembered query it is still in page footer
r=jouni x2
parent
6ec03b9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
buglist.cgi
buglist.cgi
+10
-0
No files found.
buglist.cgi
View file @
5480fdda
...
...
@@ -1061,6 +1061,16 @@ CMD: for ($::FORM{'cmdtype'}) {
my
$userid
=
DBNameToIdAndCheck
(
$::COOKIE
{
"Bugzilla_login"
});
my
$qname
=
SqlQuote
(
$::FORM
{
'namedcmd'
});
SendSQL
(
"DELETE FROM namedqueries WHERE userid = $userid AND name = $qname"
);
# Now remove this query from the footer
my
$count
=
0
;
foreach
my
$q
(
@
{
$::vars
->
{
'user'
}{
'queries'
}})
{
if
(
$q
->
{
'name'
}
eq
$::FORM
{
'namedcmd'
})
{
splice
(
@
{
$::vars
->
{
'user'
}{
'queries'
}},
$count
,
1
);
last
;
}
$count
++
;
}
print
"Content-Type: text/html\n\n"
;
# Generate and return the UI (HTML page) from the appropriate template.
$vars
->
{
'title'
}
=
"Query is gone"
;
...
...
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