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
b34a38c6
Commit
b34a38c6
authored
Aug 24, 2007
by
timeless%mozdev.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 365438 Tag-related error messages should mention "tag" instead of "saved search"
r=reed a=mkanat
parent
47d02944
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
buglist.cgi
buglist.cgi
+5
-2
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+9
-14
No files found.
buglist.cgi
View file @
b34a38c6
...
@@ -544,12 +544,15 @@ elsif (($cgi->param('cmdtype') eq "doit") && defined $cgi->param('remtype')) {
...
@@ -544,12 +544,15 @@ elsif (($cgi->param('cmdtype') eq "doit") && defined $cgi->param('remtype')) {
$bug_ids
{
$bug_id
}
=
$keep_bug
;
$bug_ids
{
$bug_id
}
=
$keep_bug
;
$changes
=
1
;
$changes
=
1
;
}
}
ThrowUserError
(
'no_bug_ids'
,
{
'action'
=>
$action
})
unless
$changes
;
ThrowUserError
(
'no_bug_ids'
,
{
'action'
=>
$action
,
'tag'
=>
$query_name
})
unless
$changes
;
# Only keep bug IDs we want to add/keep. Disregard deleted ones.
# Only keep bug IDs we want to add/keep. Disregard deleted ones.
my
@bug_ids
=
grep
{
$bug_ids
{
$_
}
==
1
}
keys
%
bug_ids
;
my
@bug_ids
=
grep
{
$bug_ids
{
$_
}
==
1
}
keys
%
bug_ids
;
# If the list is now empty, we could as well delete it completely.
# If the list is now empty, we could as well delete it completely.
ThrowUserError
(
'no_bugs_in_list'
,
{
'
saved_search
'
=>
$query_name
})
ThrowUserError
(
'no_bugs_in_list'
,
{
'
tag
'
=>
$query_name
})
unless
scalar
(
@bug_ids
);
unless
scalar
(
@bug_ids
);
$new_query
=
"bug_id="
.
join
(
','
,
sort
{
$a
<=>
$b
}
@bug_ids
);
$new_query
=
"bug_id="
.
join
(
','
,
sort
{
$a
<=>
$b
}
@bug_ids
);
...
...
template/en/default/global/user-error.html.tmpl
View file @
b34a38c6
...
@@ -902,10 +902,6 @@
...
@@ -902,10 +902,6 @@
The name of a milestone is limited to 20 characters.
The name of a milestone is limited to 20 characters.
'[% name FILTER html %]' is too long ([% name.length %] characters).
'[% name FILTER html %]' is too long ([% name.length %] characters).
[% ELSIF error == "milestone_not_specified" %]
[% title = "No Milestone Specified" %]
No milestone specified when trying to edit milestones.
[% ELSIF error == "milestone_not_valid" %]
[% ELSIF error == "milestone_not_valid" %]
[% title = "Specified Milestone Does Not Exist" %]
[% title = "Specified Milestone Does Not Exist" %]
The milestone '[% milestone FILTER html %]' for product
The milestone '[% milestone FILTER html %]' for product
...
@@ -1044,26 +1040,25 @@
...
@@ -1044,26 +1040,25 @@
You didn't define any axes to plot.
You didn't define any axes to plot.
[% ELSIF error == "no_bugs_chosen" %]
[% ELSIF error == "no_bugs_chosen" %]
[% title = BLOCK %]No [% terms.Bugs %]
Chosen
[% END %]
[% title = BLOCK %]No [% terms.Bugs %]
Selected
[% END %]
You apparently didn't choose any [% terms.bugs %] to modify.
You apparently didn't choose any [% terms.bugs %] to modify.
[% ELSIF error == "no_bug_ids" %]
[% ELSIF error == "no_bug_ids" %]
[% title = BLOCK %]No [% terms.Bugs %]
Chosen
[% END %]
[% title = BLOCK %]No [% terms.Bugs %]
Selected
[% END %]
You didn't choose any [% terms.bugs %] to
You didn't choose any [% terms.bugs %] to
[% IF action == "add" %] add to [% ELSE %] remove from [% END %]
[% IF action == "add" %] add to [% ELSE %] remove from [% END %]
the
saved search
.
the
[% tag FILTER html %] tag
.
[% ELSIF error == "no_bugs_in_list" %]
[% ELSIF error == "no_bugs_in_list" %]
[% title = "Delete
Saved Search
?" %]
[% title = "Delete
Tag
?" %]
You are going to remove all [% terms.bugs %] from the '[% saved_search FILTER html %]'
This will remove all [% terms.bugs %] from the
saved search. This will delete this saved search
completely. Click
[% tag FILTER html %] tag. This will delete the tag
completely. Click
<a href="buglist.cgi?cmdtype=dorem&remaction=forget&namedcmd=
<a href="buglist.cgi?cmdtype=dorem&remaction=forget&namedcmd=
[%- saved_search FILTER url_quote %]">here</a> if you really want to
[%- tag FILTER url_quote %]">here</a> if you really want to delete it.
remove it.
[% ELSIF error == "no_bugs_to_remove" %]
[% ELSIF error == "no_bugs_to_remove" %]
[% title = "No
Saved Search
Selected" %]
[% title = "No
Tag
Selected" %]
You didn't select a
ny saved search to remove [% terms.bugs %] from
.
You didn't select a
tag from which to remove [% terms.bugs %]
.
[% ELSIF error == "no_component_change_for_multiple_products" %]
[% ELSIF error == "no_component_change_for_multiple_products" %]
[% title = "Action Not Permitted" %]
[% title = "Action Not Permitted" %]
...
...
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