Bug 35752: Pass CSRF token to del_form

To test:

1. Have multiple additional content items ( news/HTML customization/Pages )
2. On one of the pages ( news/HTML customization/Pages ) select more than one item and try to delete using the 'Delete selected' button
3. You are redirected but nothing happens.
4. APPLY PATCH
5. Try again, this time you should be able to successfully delete additional-contents.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Lucas Gass 2024-01-09 21:49:44 +00:00 committed by Katrin Fischer
parent cbc97f5c68
commit 241fb630f1
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -377,6 +377,7 @@
[% IF additional_contents.count %]
<div class="page-section">
<form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl">
[% INCLUDE 'csrf-token.inc' %]
<table id="table_additional_contents">
<thead>
<tr>