View | Details | Raw Unified | Return to bug 37152
Collapse All | Expand All

(-)a/acqui/basket.pl (-1 / +1 lines)
Lines 134-140 if ( $op eq 'cud-delete-order' ) { Link Here
134
    $order->delete if $order;
134
    $order->delete if $order;
135
    $op = 'list';
135
    $op = 'list';
136
136
137
} elsif ( $op eq 'cud-delete_confirm' ) {
137
} elsif ( $op eq 'cud-delete' ) {
138
138
139
    output_and_exit( $query, $cookie, $template, 'insufficient_permission' )
139
    output_and_exit( $query, $cookie, $template, 'insufficient_permission' )
140
      unless $logged_in_patron->has_permission( { acquisition => 'delete_baskets' } );
140
      unless $logged_in_patron->has_permission( { acquisition => 'delete_baskets' } );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-3 / +3 lines)
Lines 146-152 Link Here
146
                                                    <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
146
                                                    <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
147
                                                    <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
147
                                                    <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
148
                                                        [% INCLUDE 'csrf-token.inc' %]
148
                                                        [% INCLUDE 'csrf-token.inc' %]
149
                                                        <input type="hidden" name="op" value="cud-delete_confirm" />
149
                                                        <input type="hidden" name="op" value="cud-delete" />
150
                                                        <input type="hidden" name="basketno" value="[% basketno | html %]" />
150
                                                        <input type="hidden" name="basketno" value="[% basketno | html %]" />
151
                                                        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
151
                                                        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
152
                                                        <input type="hidden" name="delbiblio" value="0" />
152
                                                        <input type="hidden" name="delbiblio" value="0" />
Lines 165-171 Link Here
165
                                                    <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
165
                                                    <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
166
                                                    <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
166
                                                    <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
167
                                                        [% INCLUDE 'csrf-token.inc' %]
167
                                                        [% INCLUDE 'csrf-token.inc' %]
168
                                                        <input type="hidden" name="op" value="cud-delete_confirm" />
168
                                                        <input type="hidden" name="op" value="cud-delete" />
169
                                                        <input type="hidden" name="basketno" value="[% basketno | html %]" />
169
                                                        <input type="hidden" name="basketno" value="[% basketno | html %]" />
170
                                                        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
170
                                                        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
171
                                                        <input type="hidden" name="delbiblio" value="0" />
171
                                                        <input type="hidden" name="delbiblio" value="0" />
Lines 174-180 Link Here
174
174
175
                                                    <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
175
                                                    <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
176
                                                        [% INCLUDE 'csrf-token.inc' %]
176
                                                        [% INCLUDE 'csrf-token.inc' %]
177
                                                        <input type="hidden" name="op" value="cud-delete_confirm" />
177
                                                        <input type="hidden" name="op" value="cud-delete" />
178
                                                        <input type="hidden" name="basketno" value="[% basketno | html %]" />
178
                                                        <input type="hidden" name="basketno" value="[% basketno | html %]" />
179
                                                        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
179
                                                        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
180
                                                        <input type="hidden" name="delbiblio" value="1" />
180
                                                        <input type="hidden" name="delbiblio" value="1" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-1 / +1 lines)
Lines 374-380 Link Here
374
                                [% SET can_delete_suggestion = 0 %]
374
                                [% SET can_delete_suggestion = 0 %]
375
                                <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="delete_suggestions">
375
                                <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="delete_suggestions">
376
                                    [% INCLUDE 'csrf-token.inc' %]
376
                                    [% INCLUDE 'csrf-token.inc' %]
377
                                    <input type="hidden" name="op" value="cud-delete_confirm" />
377
                                    <input type="hidden" name="op" value="cud-delete" />
378
                                    [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %]
378
                                    [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %]
379
                                        <div id="toolbar" class="toolbar clearfix">
379
                                        <div id="toolbar" class="toolbar clearfix">
380
                                        [% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]
380
                                        [% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]
(-)a/opac/opac-suggestions.pl (-2 / +1 lines)
Lines 232-238 my $suggestions = [ Koha::Suggestions->search_limited( Link Here
232
    }
232
    }
233
)->as_list ];
233
)->as_list ];
234
234
235
if ( $op eq "cud-delete_confirm" ) {
235
if ( $op eq "cud-delete" ) {
236
    my @delete_field = $input->multi_param("delete_field");
236
    my @delete_field = $input->multi_param("delete_field");
237
    foreach my $delete_field (@delete_field) {
237
    foreach my $delete_field (@delete_field) {
238
        &DelSuggestion( $borrowernumber, $delete_field );
238
        &DelSuggestion( $borrowernumber, $delete_field );
239
- 

Return to bug 37152