@@ -, +, @@ --- circ/circulation.pl | 6 ++++++ 1 file changed, 6 insertions(+) --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -54,6 +54,7 @@ use Koha::Items; use Koha::SearchEngine; use Koha::SearchEngine::Search; use Koha::Patron::Modifications; +use Koha::Token; use List::MoreUtils qw( uniq ); @@ -636,4 +637,9 @@ $template->param( logged_in_user => $logged_in_user, ); +# Generate CSRF token for upload and delete image buttons +$template->param( + csrf_token => Koha::Token->new->generate_csrf({ session_id => $query->cookie('CGISESSID'),}), +); + output_html_with_http_headers $query, $cookie, $template->output; --