]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 698068: The "There is no saved search named ..." page has a "forget" link
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 20 Aug 2012 09:02:24 +0000 (11:02 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 20 Aug 2012 09:02:24 +0000 (11:02 +0200)
r=glob a=LpSolit

Bugzilla/Search/Saved.pm
buglist.cgi
template/en/default/global/user-error.html.tmpl

index fc773fcde6829a73392f7cb9b5c351cae8140628..99194112a992aee129d1aafdf63018a3b2285c1a 100644 (file)
@@ -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 });
     }
 
index 1029f0fe74365c7556db5902c41821cbae087bff..b4c322a585e7e2563b87ddd0408dcac07ac12122 100755 (executable)
@@ -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");
index 3d1ac5c53bfa65284c24199c44726a9255c83935..5536d9fd2026867066e81f45b102a77f6f8a72fd 100644 (file)
     [% 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 %]