Bug 34478: Manual fix - action to op / add cud- - opac-search-history
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
00a0842797
commit
8df0f91237
|
|
@ -86,7 +86,7 @@
|
|||
<legend class="sr-only">Toolbar control</legend>
|
||||
|
||||
[% INCLUDE 'toolbar_controls' %]
|
||||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="op" value="cud-delete" />
|
||||
<table class="historyt table table-bordered table-striped">
|
||||
<caption class="sr-only">Current session</caption>
|
||||
<thead>
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
<legend class="sr-only">Toolbar control</legend>
|
||||
[% INCLUDE 'toolbar_controls' %]
|
||||
|
||||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="op" value="cud-delete" />
|
||||
<table class="historyt table table-bordered table-striped">
|
||||
<caption class="sr-only">Previous sessions</caption>
|
||||
<thead>
|
||||
|
|
@ -189,7 +189,7 @@
|
|||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<legend class="sr-only">Toolbar control</legend>
|
||||
[% INCLUDE 'toolbar_controls' %]
|
||||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="op" value="cud-delete" />
|
||||
<table class="historyt table table-bordered table-striped">
|
||||
<caption class="sr-only">Current session</caption>
|
||||
<thead>
|
||||
|
|
@ -231,7 +231,7 @@
|
|||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<legend class="sr-only">Toolbar control</legend>
|
||||
[% INCLUDE 'toolbar_controls' %]
|
||||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="op" value="cud-delete" />
|
||||
<table class="historyt table table-bordered table-striped">
|
||||
<caption class="sr-only">Previous sessions</caption>
|
||||
<thead>
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue