]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 29 Aug 2024 17:30:21 +0000 (17:30 +0000)
commit812f268d8a2e2c070ad383e7ea09cd15e0ffc6b3
treed849ef1a6409b53a2851720eb3630aa11b9a73b2
parent04b7d7f1ffe464120b26fed5636fae215f4be608
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>
(cherry picked from commit 2263d9f3b0aef977642eaffa38fb5bddae16bc0e)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc