diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt
index 229e3294d2..44d44d4d39 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt
@@ -86,7 +86,7 @@
[% INCLUDE 'toolbar_controls' %]
-
+
Current session
@@ -134,7 +134,7 @@
[% INCLUDE 'toolbar_controls' %]
-
+
Previous sessions
@@ -189,7 +189,7 @@
[% INCLUDE 'csrf-token.inc' %]
[% INCLUDE 'toolbar_controls' %]
-
+
Current session
@@ -231,7 +231,7 @@
[% INCLUDE 'csrf-token.inc' %]
[% INCLUDE 'toolbar_controls' %]
-
+
Previous sessions
diff --git a/opac/opac-search-history.pl b/opac/opac-search-history.pl
index b5a53c6011..85f807fd48 100755
--- a/opac/opac-search-history.pl
+++ b/opac/opac-search-history.pl
@@ -45,13 +45,13 @@ unless ( C4::Context->preference("EnableOpacSearchHistory") ) {
}
my $type = $cgi->param('type');
-my $action = $cgi->param('action') || q{};
+my $op = $cgi->param('op') || q{};
my $previous = $cgi->param('previous');
# If the user is not logged in, we deal with the session
unless ( $loggedinuser ) {
# Deleting search history
- if ( $action eq 'cud-delete') {
+ if ( $op eq 'cud-delete') {
# Deleting session's search history
my @id = $cgi->multi_param('id');
my $all = not scalar( @id );
@@ -96,7 +96,7 @@ unless ( $loggedinuser ) {
my $dbh = C4::Context->dbh;
# Deleting search history
- if ( $action eq 'cud-delete' ) {
+ if ( $op eq 'cud-delete' ) {
my @id = $cgi->multi_param('id');
if ( @id ) {
C4::Search::History::delete(