]> git.koha-community.org Git - koha.git/commit
Bug 7660: Use first available categorycode when none passed in
authorNick Clemens <nick@bywatersolutions.com>
Mon, 18 Jul 2022 11:49:57 +0000 (11:49 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 23 Aug 2022 20:04:54 +0000 (20:04 +0000)
commit12569073194b5b833022a77289f26c1d37bdc90f
tree62ee629b5e0ae7a8fd7cdf834d1d3eec78101fb7
parent962155d0ecf7ed0f4f5c6c05c7f488b1efcaa83b
Bug 7660: Use first available categorycode when none passed in

The code that populates the patron messaging preferences on initial form load
expects to have a category selected. Currently we only have one if one was
passed to the form. When creating an account from a parent, we don't have a
category explicitly selected - so we can just select the first of the possible
categories

To test:
 1 - In KTD set 'Juvenile' category to have some messaging preferences
 2 - Find a patron, say Edna Acosta, and 'Add guarantee'
 3 - In new form preferences are blank, cancel
 4 - Apply patch, restart all
 5 - Go to Edna, click 'Add guarantee'
 6 - Preferences are populated!
 7 - Cancel
 8 - Go to 'Patrons' module
 9 - Click "+ New patron"
10 - Confirm messaging preferences load correctly when not adding child

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 146423f1bcbefda20995429a1f8ed9152977495c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
members/memberentry.pl