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
cab671b7
Commit
cab671b7
authored
Mar 01, 2010
by
Kent Rogers
Committed by
Max Kanat-Alexander
Mar 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 286041 - Allow people to undo "forget search"
r=mkanat, a=mkanat
parent
78be753e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
buglist.cgi
buglist.cgi
+4
-5
messages.html.tmpl
template/en/default/global/messages.html.tmpl
+1
-1
No files found.
buglist.cgi
View file @
cab671b7
...
...
@@ -456,10 +456,9 @@ if ($cmdtype eq "dorem") {
}
# If we are here, then we can safely remove the saved search
my
(
$query_id
)
=
$dbh
->
selectrow_array
(
'SELECT id FROM namedqueries
WHERE userid = ?
AND name = ?'
,
undef
,
(
$user
->
id
,
$qname
));
my
$query_id
;
(
$buffer
,
$query_id
)
=
LookupNamedQuery
(
scalar
$cgi
->
param
(
"namedcmd"
),
$user
->
id
);
if
(
!
$query_id
)
{
# The user has no query of this name. Play along.
}
...
...
@@ -486,7 +485,7 @@ if ($cmdtype eq "dorem") {
# Generate and return the UI (HTML page) from the appropriate template.
$vars
->
{
'message'
}
=
"buglist_query_gone"
;
$vars
->
{
'namedcmd'
}
=
$qname
;
$vars
->
{
'url'
}
=
"
query.cgi"
;
$vars
->
{
'url'
}
=
"
buglist.cgi?newquery="
.
url_quote
(
$buffer
)
.
"&cmdtype=doit&remtype=asnamed&newqueryname="
.
url_quote
(
$qname
)
;
$template
->
process
(
"global/message.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
exit
;
...
...
template/en/default/global/messages.html.tmpl
View file @
cab671b7
...
...
@@ -144,7 +144,7 @@
[% ELSIF message_tag == "buglist_query_gone" %]
[% title = "Search is gone" %]
[% link = "
Go back to the search page.
" %]
[% link = "
Un-forget the search
" %]
OK, the <b>[% namedcmd FILTER html %]</b> search is gone.
[% ELSIF message_tag == "buglist_sorted_by_relevance" %]
...
...
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