]> git.koha-community.org Git - koha.git/commit
Bug 37863: Fix checking if a patron is already in the list adding users to a patron...
authorAdolfo Rodríguez <adolfo.rodriguez@xercode.es>
Mon, 9 Sep 2024 07:20:08 +0000 (09:20 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 18 Dec 2024 12:19:39 +0000 (13:19 +0100)
commit926369161296fd0f41cc19cfe5726e8a9b32c14f
tree2be634c83a5af081d38137bc3ee1e99ff9a15ab5
parent11005fd44c6350f38f17387b3a31f07627ad439c
Bug 37863: Fix checking if a patron is already in the list adding users to a patron card batch

If the patron is already in the card batch it won't add it and it will show an error message

Test plan:
1 Create or edit an patron card batch
2 Try adding twice or more the same patron. It will show a success message everytime and you will end up with the same patron several times in the card batch
3 Apply patch, restart services
4 Repeat step 2. The first time you click on add user, it will do it and show the success message (Patron 'Patron name' added.), but after that it won't add the user and it will display an error message (Patron 'Patron name' is already in the list.)

Signed-off-by: Sukhmandeep Benipal <sukhmandeep.benipal@inLibro.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 293afd3de6a7f88d6da4311026fd294e49eb6b96)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0e2778159d14e438c8f6c60c5a43f97a74f9b79e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt