diff options
author | timeless%mozdev.org <> | 2007-08-24 09:48:09 +0000 |
---|---|---|
committer | timeless%mozdev.org <> | 2007-08-24 09:48:09 +0000 |
commit | b34a38c601e3c0d488cd802faf3c4ce62c3231be (patch) | |
tree | 4216ee1a50df210f1c12949cdfd63f836b6302f9 /buglist.cgi | |
parent | Bug 387607 detect and accommodate restored "edit attachment as comment" mode (diff) | |
download | bugzilla-b34a38c601e3c0d488cd802faf3c4ce62c3231be.tar.gz bugzilla-b34a38c601e3c0d488cd802faf3c4ce62c3231be.tar.bz2 bugzilla-b34a38c601e3c0d488cd802faf3c4ce62c3231be.zip |
Bug 365438 Tag-related error messages should mention "tag" instead of "saved search"
r=reed a=mkanat
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi index 8aa9249df..ce45dc2c0 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -544,12 +544,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); |