@@ -, +, @@ should use the op cud-delete confirm --- acqui/basket.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 6 +++--- .../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- opac/opac-suggestions.pl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) --- a/acqui/basket.pl +++ a/acqui/basket.pl @@ -134,7 +134,7 @@ if ( $op eq 'cud-delete-order' ) { $order->delete if $order; $op = 'list'; -} elsif ( $op eq 'cud-delete_confirm' ) { +} elsif ( $op eq 'cud-delete' ) { output_and_exit( $query, $cookie, $template, 'insufficient_permission' ) unless $logged_in_patron->has_permission( { acquisition => 'delete_baskets' } ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -146,7 +146,7 @@
[% INCLUDE 'csrf-token.inc' %] - + @@ -165,7 +165,7 @@ [% INCLUDE 'csrf-token.inc' %] - + @@ -174,7 +174,7 @@ [% INCLUDE 'csrf-token.inc' %] - + --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -374,7 +374,7 @@ [% SET can_delete_suggestion = 0 %] [% INCLUDE 'csrf-token.inc' %] - + [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %]
[% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %] --- a/opac/opac-suggestions.pl +++ a/opac/opac-suggestions.pl @@ -232,7 +232,7 @@ my $suggestions = [ Koha::Suggestions->search_limited( } )->as_list ]; -if ( $op eq "cud-delete_confirm" ) { +if ( $op eq "cud-delete" ) { my @delete_field = $input->multi_param("delete_field"); foreach my $delete_field (@delete_field) { &DelSuggestion( $borrowernumber, $delete_field ); --