Bug 11280 - Change Withdrawn toggle to drop down selection of authorized values
[koha_ffzg] / catalogue / search-history.pl
index a969701..4a8251f 100755 (executable)
@@ -46,15 +46,11 @@ if ( $action eq 'delete' ) {
         : q{};
     C4::Search::History::delete(
         {
-            userid => $loggedinuser,
-            sessionid => $sessionid,
-            type => $type,
-            previous => $previous
+            id => [ $cgi->param('id') ],
         }
     );
     # Redirecting to this same url so the user won't see the search history link in the header
-    my $uri = $cgi->url();
-    print $cgi->redirect($uri);
+    print $cgi->redirect('/cgi-bin/koha/catalogue/search-history.pl');
 
 # Showing search history
 } else {