From 8df0f9123748a4efb67b6eda7f836ffc1ba5be63 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 31 Jan 2024 09:16:17 -0500 Subject: [PATCH] Bug 34478: Manual fix - action to op / add cud- - opac-search-history Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/modules/opac-search-history.tt | 8 ++++---- opac/opac-search-history.pl | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) 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 @@ Toolbar control [% INCLUDE 'toolbar_controls' %] - + @@ -134,7 +134,7 @@ Toolbar control [% INCLUDE 'toolbar_controls' %] - +
Current session
@@ -189,7 +189,7 @@ [% INCLUDE 'csrf-token.inc' %] Toolbar control [% INCLUDE 'toolbar_controls' %] - +
Previous sessions
@@ -231,7 +231,7 @@ [% INCLUDE 'csrf-token.inc' %] Toolbar control [% INCLUDE 'toolbar_controls' %] - +
Current session
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( -- 2.39.5
Previous sessions