aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-08-20 11:00:03 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-20 11:00:03 +0200
commitd2c7ad1823fc93fb28d4ad4270bccbd0a186e0ac (patch)
tree4fe803902a8fa74ed16d03c245fb12dab92f9471
parentf9e534a4811d5e0c6c15ad89a1aa67b11afde463 (diff)
downloadbugs-d2c7ad1823fc93fb28d4ad4270bccbd0a186e0ac.tar
bugs-d2c7ad1823fc93fb28d4ad4270bccbd0a186e0ac.tar.gz
bugs-d2c7ad1823fc93fb28d4ad4270bccbd0a186e0ac.tar.bz2
bugs-d2c7ad1823fc93fb28d4ad4270bccbd0a186e0ac.tar.xz
bugs-d2c7ad1823fc93fb28d4ad4270bccbd0a186e0ac.zip
Bug 698068: The "There is no saved search named ..." page has a "forget" link
r=glob a=LpSolit
-rw-r--r--Bugzilla/Search/Saved.pm2
-rwxr-xr-xbuglist.cgi2
-rw-r--r--template/en/default/global/user-error.html.tmpl2
3 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Search/Saved.pm b/Bugzilla/Search/Saved.pm
index f7d5971d4..c9885c9ce 100644
--- a/Bugzilla/Search/Saved.pm
+++ b/Bugzilla/Search/Saved.pm
@@ -96,7 +96,7 @@ sub check {
if (!$search->shared_with_group
or !$user->in_group($search->shared_with_group))
{
- ThrowUserError('missing_query', { queryname => $search->name,
+ ThrowUserError('missing_query', { name => $search->name,
sharer_id => $search->user->id });
}
diff --git a/buglist.cgi b/buglist.cgi
index 13a2ef043..3466b4681 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -183,7 +183,7 @@ sub LookupNamedQuery {
Bugzilla->login(LOGIN_REQUIRED);
my $query = Bugzilla::Search::Saved->check(
- { user => $sharer_id, name => $name });
+ { user => $sharer_id, name => $name, _error => 'missing_query' });
$query->url
|| ThrowUserError("buglist_parameters_required");
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 2d79bf851..41205ccb6 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1171,7 +1171,7 @@
[% title = "Missing Search" %]
[% docslinks = {'query.html' => "Searching for $terms.bugs",
'query.html#list' => "$terms.Bug lists"} %]
- The search named <em>[% queryname FILTER html %]</em>
+ The search named <em>[% name FILTER html %]</em>
[% IF sharer_id && sharer_id != user.id %]
has not been made visible to you.
[% ELSE %]