From 2263d9f3b0aef977642eaffa38fb5bddae16bc0e Mon Sep 17 00:00:00 2001 From: Sam Lau Date: Fri, 26 Jul 2024 16:17:56 +0000 Subject: [PATCH] Bug 37489: Separate forms for uploading and deleting a patron image This patch creats a new form for image deletion that is submitted via the 'Delete' button on the modal. To test: 1) Turon on the 'patronimages' sys pref 2) Visit a patron page, you should see an image module on the left. 3) Click on the image to edit it. Upload a new image. 4) Edit the image again, press delete and confirm the popup. 5) Note that it will not let you delete because of the required file. 6) Apply patch 7) Attempt to delete again, this time it is successful. Signed-off-by: Roman Dolny Signed-off-by: David Cook Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/includes/circ-menu.inc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index 9c6d83ea4e..7cfafd54e0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -293,11 +293,19 @@ - [% IF ( patron.image ) %] - - [% END %] + [% IF ( patron.image ) %] +
+
+ [% INCLUDE 'csrf-token.inc' %] + + + + +
+
+ [% END %]
Take patron photo