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
cae81151
Commit
cae81151
authored
May 26, 2003
by
timeless%mozdev.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 207085 Updating a stored query shouldn't return the same message as creating one
r=kiko
parent
12a601d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
buglist.cgi
buglist.cgi
+7
-3
messages.html.tmpl
template/en/default/global/messages.html.tmpl
+5
-0
No files found.
buglist.cgi
View file @
cae81151
...
...
@@ -329,11 +329,16 @@ elsif ($::FORM{'cmdtype'} eq "doit" && $::FORM{'remember'}) {
}
my
$new_in_footer
=
$tofooter
;
$vars
->
{
'message'
}
=
"buglist_new_named_query"
;
# Don't add it to the list if they are reusing an existing query name.
foreach
my
$query
(
@
{
$vars
->
{
'user'
}{
'queries'
}})
{
if
(
$query
->
{
'name'
}
eq
$name
&&
$query
->
{
'linkinfooter'
}
==
1
)
{
$new_in_footer
=
0
;
if
(
$query
->
{
'name'
}
eq
$name
)
{
$vars
->
{
'message'
}
=
"buglist_updated_named_query"
;
if
(
$query
->
{
'linkinfooter'
}
==
1
)
{
$new_in_footer
=
0
;
}
break
;
}
}
...
...
@@ -344,7 +349,6 @@ elsif ($::FORM{'cmdtype'} eq "doit" && $::FORM{'remember'}) {
push
(
@
{
$vars
->
{
'user'
}{
'queries'
}},
\%
query
);
}
$vars
->
{
'message'
}
=
"buglist_new_named_query"
;
$vars
->
{
'queryname'
}
=
$name
;
}
}
...
...
template/en/default/global/messages.html.tmpl
View file @
cae81151
...
...
@@ -36,10 +36,15 @@
[% title = "Adding field to query page..." %]
[% link = "Click here if the page does not redisplay automatically." %]
[% # --- %]
[% ELSIF message_tag == "buglist_load_named_query" %]
[% title = BLOCK %]Loading your query named [% namedcmd %][% END %]
[% link = "Click here if the page does not redisplay automatically." %]
[% # --- %]
[% ELSIF message_tag == "buglist_updated_named_query" %]
OK, your query named <code>[% queryname FILTER html %]</code> is updated.
[% ELSIF message_tag == "buglist_new_default_query" %]
OK, you now have a new default query. You may
also bookmark the result of any individual query.
...
...
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