]> git.koha-community.org Git - koha.git/commit
Bug 33849: Do not reset new patrons home library when error occurs
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Thu, 4 Apr 2024 06:04:47 +0000 (09:04 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 30 May 2024 19:15:53 +0000 (19:15 +0000)
commit207e10b81aacd3d28ef2afdbc65d0e0c01d20137
tree8ea85e921dc25bffe5fb7e21fe3e081af08c98a6
parentbbf60c88917705da253b02652c17deada260d6ab
Bug 33849: Do not reset new patrons home library when error occurs

While adding new patron, if patron is flagged as duplicate
or another error occurs and their home library differs from
library user is logged in, patrons home library resets as
logged in users library. This happens with all patrons
expect those with category type C. This patch removes checking
if patrons category type is C from code so that all category
types use previously chosen home library even if error occurs.

To test:
1. Add new patron and set their library to a different
library than the one you're logged in.
2. Cause an error (wrong age, duplicate etc) while saving.
3. Attempt to save.
=> Note that patrons home library is set as one you're
logged in.
4. Apply this patch.
5. Repeat steps 1 to 3.
=> Note that patrons home library hasn't changed.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Esther <esther@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit d2f41df188c3d8e8d8705c6a5ceb583e3e29e629)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 3c52b89167018f79456a3308cdd5f7266856ef5f)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
members/memberentry.pl