summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-08-20 11:02:24 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-20 11:02:24 +0200
commit36ffbcd533ca1a98224e7240a039c59786a24bbd (patch)
tree8030036d53b4e7035889d6dc5ce2f24b5b661adf
parent872088062e1be624952038424854b5bd454d6307 (diff)
downloadbugzilla-36ffbcd533ca1a98224e7240a039c59786a24bbd.tar.gz
bugzilla-36ffbcd533ca1a98224e7240a039c59786a24bbd.tar.xz
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 fc773fcde..99194112a 100644
--- a/Bugzilla/Search/Saved.pm
+++ b/Bugzilla/Search/Saved.pm
@@ -109,7 +109,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 1029f0fe7..b4c322a58 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -213,7 +213,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 3d1ac5c53..5536d9fd2 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1177,7 +1177,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 %]