Commit d2c7ad18 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 698068: The "There is no saved search named ..." page has a "forget" link

r=glob a=LpSolit
parent f9e534a4
......@@ -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 });
}
......
......@@ -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");
......
......@@ -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 %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment