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

(-)a/admin/systempreferences.pl (+1 lines)
Lines 352-357 if ( $op eq 'add_form' ) { Link Here
352
} elsif ( $op eq 'cud-delete_confirmed' ) {
352
} elsif ( $op eq 'cud-delete_confirmed' ) {
353
    output_and_exit_if_error($input, $cookie, $template, { check => 'csrf_token' });
353
    output_and_exit_if_error($input, $cookie, $template, { check => 'csrf_token' });
354
    C4::Context->delete_preference($searchfield);
354
    C4::Context->delete_preference($searchfield);
355
    $template->param( delete_confirmed => 1 );
355
    # END $OP eq DELETE_CONFIRMED
356
    # END $OP eq DELETE_CONFIRMED
356
################## DEFAULT ##################################
357
################## DEFAULT ##################################
357
} else {    # DEFAULT
358
} else {    # DEFAULT
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt (-5 / +2 lines)
Lines 289-296 Link Here
289
                <input type="hidden" name="Tvalue" value="[% Tvalue | html %]" />
289
                <input type="hidden" name="Tvalue" value="[% Tvalue | html %]" />
290
                <button type="submit" class="btn btn-default approve"><i class="fa fa-check" aria-hidden="true"></i> Yes, delete</button>
290
                <button type="submit" class="btn btn-default approve"><i class="fa fa-check" aria-hidden="true"></i> Yes, delete</button>
291
            </form>
291
            </form>
292
            <form class="inline" action="[% script_name | html %]" method="post">
292
            <form class="inline" action="[% script_name | html %]" method="get">
293
                [% INCLUDE 'csrf-token.inc' %]
294
                <button type="submit" class="btn btn-default deny"><i class="fa fa-remove" aria-hidden="true"></i> No, do not delete</button>
293
                <button type="submit" class="btn btn-default deny"><i class="fa fa-remove" aria-hidden="true"></i> No, do not delete</button>
295
            </form>
294
            </form>
296
        </div>
295
        </div>
Lines 299-306 Link Here
299
    [% IF ( delete_confirmed ) %]
298
    [% IF ( delete_confirmed ) %]
300
        <div class="alert alert-info">
299
        <div class="alert alert-info">
301
            <h1>Data deleted</h1>
300
            <h1>Data deleted</h1>
302
            <form action="[% script_name | html %]" method="post">
301
            <form action="[% script_name | html %]" method="get">
303
                [% INCLUDE 'csrf-token.inc' %]
304
                <button type="submit">Back to system preferences</button>
302
                <button type="submit">Back to system preferences</button>
305
            </form>
303
            </form>
306
        </div>
304
        </div>
307
- 

Return to bug 37765