]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365438 Tag-related error messages should mention "tag" instead of "saved search"
authortimeless%mozdev.org <>
Fri, 24 Aug 2007 09:48:10 +0000 (09:48 +0000)
committertimeless%mozdev.org <>
Fri, 24 Aug 2007 09:48:10 +0000 (09:48 +0000)
r=reed a=mkanat

buglist.cgi
template/en/default/global/user-error.html.tmpl

index 96454d12cd03b120014e6d47601370ccd3a36651..ddf31ddfff03beb0f8d3e8bf07dea1b694b3f622 100755 (executable)
@@ -542,12 +542,15 @@ elsif (($cgi->param('cmdtype') eq "doit") && defined $cgi->param('remtype')) {
                 $bug_ids{$bug_id} = $keep_bug;
                 $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.
             my @bug_ids = grep { $bug_ids{$_} == 1 } keys %bug_ids;
             # 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);
 
             $new_query = "bug_id=" . join(',', sort {$a <=> $b} @bug_ids);
index 2a77affc30ce0a63c4e0dab0ff838b7206145710..5801396422ae4ce73a3ac46669ec6b09d01b1d0d 100644 (file)
     You didn't define any axes to plot.
 
   [% 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.
 
   [% 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
     [% IF action == "add" %] add to [% ELSE %] remove from [% END %]
-    the saved search.
+    the [% tag FILTER html %] tag.
 
   [% ELSIF error == "no_bugs_in_list" %]
-    [% title = "Delete Saved Search?" %]
-    You are going to remove all [% terms.bugs %] from the '[% saved_search FILTER html %]'
-    saved search. This will delete this saved search completely. Click
+    [% title = "Delete Tag?" %]
+    This will remove all [% terms.bugs %] from the
+    [% tag FILTER html %] tag. This will delete the tag completely. Click
     <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
-    [%- saved_search FILTER url_quote %]">here</a> if you really want to
-    remove it.
+    [%- tag FILTER url_quote %]">here</a> if you really want to delete it.
 
   [% ELSIF error == "no_bugs_to_remove" %]
-    [% title = "No Saved Search Selected" %]
-    You didn't select any saved search to remove [% terms.bugs %] from.
+    [% title = "No Tag Selected" %]
+    You didn't select a tag from which to remove [% terms.bugs %].
 
   [% ELSIF error == "no_component_change_for_multiple_products" %]
     [% title = "Action Not Permitted" %]