Koha-clms/members
Nick Clemens cf35f971c4 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 146423f1bc)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1256907319)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-08-26 15:49:52 +02:00
..
accountline-details.pl Bug 22435: Update accountline-details page to show all history 2021-08-04 14:06:43 +02:00
apikeys.pl Bug 28772: Display API secret once 2021-09-30 09:19:05 +02:00
boraccount.pl Bug 29758: Get rid of warning in members/boraccount.pl 2022-02-07 06:17:21 -05:00
cancel-charge.pl Bug 29457: Pass context borrowernumber 2022-01-07 05:58:09 -05:00
default_messageprefs.pl Bug 18403: Update permissions - borrowers => 1|* becomes borrowers => 'edit_borrowers' 2018-02-12 15:41:37 -03:00
deletemem.pl Bug 27145: Wrap delete and move_to_deleted in a transaction 2021-11-15 12:38:39 +01:00
discharge.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
discharges.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
files.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
guarantor_search.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
holdshistory.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
housebound.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ill-requests.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
mancredit.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
maninvoice.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
member-flags.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
member-password.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
member.pl Bug 15812: Use patron search in place of circ search 2021-10-14 09:19:30 +02:00
memberentry.pl Bug 7660: Use first available categorycode when none passed in 2022-08-26 15:49:52 +02:00
members-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
members-update-do.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
members-update.pl Bug 28073: Patron modifications should auto-open panel for referring patron record 2021-07-26 12:46:32 +02:00
merge-patrons.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
mod_debarment.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
moremember.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
notices.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
patronimage.pl Bug 29541: Prevent users from another group to access patron's images 2022-01-25 14:42:18 -05:00
pay.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
paycollect.pl Bug 29684: (QA follow-up) paycollect.pl don't needs borrower_data at all 2022-03-25 08:18:16 -04:00
print_overdues.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
printfeercpt.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
printinvoice.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
printslip.pl Bug 29062: Use primary key issued_id to fetch old_issues for letters 2021-10-07 15:49:01 +02:00
purchase-suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
readingrec.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
routing-lists.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
setstatus.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
statistics.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
summary-print.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
update-child.pl Bug 28624: Remove Smart::Comments 2021-07-26 12:46:32 +02:00