@@ -, +, @@ others patrons --- catalogue/search-history.pl | 3 ++- opac/opac-search-history.pl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) --- a/catalogue/search-history.pl +++ a/catalogue/search-history.pl @@ -46,7 +46,8 @@ if ( $action eq 'delete' ) { : q{}; C4::Search::History::delete( { - id => [ $cgi->param('id') ], + userid => $loggedinuser, + id => [ $cgi->param('id') ], } ); # Redirecting to this same url so the user won't see the search history link in the header --- a/opac/opac-search-history.pl +++ a/opac/opac-search-history.pl @@ -103,7 +103,8 @@ unless ( $loggedinuser ) { if ( @id ) { C4::Search::History::delete( { - id => [ $cgi->param('id') ], + userid => $loggedinuser, + id => [ $cgi->param('id') ], } ); } else { --