From febc46fa69aa00ecd47083a26522458addc1ca05 Mon Sep 17 00:00:00 2001 From: David Cook Date: Sun, 27 Oct 2024 23:19:45 +0000 Subject: [PATCH] Bug 38275: Fix patron card creator image delete This change changes the patron card creator image delete from a GET to a POST, and supports single delete and multi-delete. Test plan: 1. Apply the patch (and refresh browser JS cache) 2. Go to http://localhost:8081/cgi-bin/koha/patroncards/image-manage.pl 3. Upload multiple images 4. Select all the images using the checkboxes 5. Delete one image using the "Delete" button in the row 6. Note that only the image selected using the "Delete" button is deleted and the other images are de-selected 7. Delete multiple images using the "Delete selected" button 8. Note that the correct images are noted in the confirm message, and the correct images are deleted Signed-off-by: David Nind --- .../en/modules/patroncards/image-manage.tt | 53 ++++++++++++------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt index 73d6aff04a..ee67c6cebe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt @@ -113,9 +113,9 @@ [% FOREACH text_field IN TABL.text_fields %] [% IF ( text_field.select_field ) %] - Delete + Delete - + [% ELSIF ( text_field.field_value ) %] [% text_field.field_value | html %] [% ELSE %] @@ -165,12 +165,15 @@ [% MACRO jsinclude BLOCK %] -- 2.39.5