]> git.koha-community.org Git - koha.git/commit
Bug 37489: Separate forms for uploading and deleting a patron image
authorSam Lau <samalau@gmail.com>
Fri, 26 Jul 2024 16:17:56 +0000 (16:17 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 1 Aug 2024 16:22:32 +0000 (18:22 +0200)
commit2263d9f3b0aef977642eaffa38fb5bddae16bc0e
tree591097df48016c1214c6fcf94fec2d85312bf7f5
parent8872aa91e35a77951eb60037bc1f709fe093f00a
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 <roman.dolny@jezuici.pl>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc