Koha/members
Jonathan Druart 585453fe20 Bug 19921: Fix update child when only one adult patron category exist
We are passing the Koha::Patron::Category object to the template instead
of the categorycode.

To reproduce this bug you must test in a system which has only one
patron category of the "adult" type. View the details of a patron with a
child-type patron category and choose More -> Update child to adult
patron.

This results in an error:

Can't call method "category_type" on an undefined value at
/home/vagrant/kohaclone/members/update-child.pl line 84.

The URL of the error page shows a problem with the parameters being
passed:

members/update-child.pl?op=update&borrowernumber=12345&catcode=Koha::Patron::Category=HASH(0xa168a18)&catcode_multi=

Test plan:
Make sure you have only 1 adult patron category
Update a child to adult
=> With this patch applied the error is gone and the patron has been
correctly updated

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-01-15 12:13:59 -03:00
..
boraccount.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
default_messageprefs.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
deletemem.pl Bug 19621: Use Koha.Preference on template side to display/hide "Routing lists" tab 2017-12-22 13:15:36 -03:00
discharge.pl Bug 19080: Handle non-existing patrons gratefully 2017-08-25 11:03:37 -03:00
discharges.pl Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00
files.pl Bug 19621: Use Koha.Preference on template side to display/hide "Routing lists" tab 2017-12-22 13:15:36 -03:00
guarantor_search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
holdshistory.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
housebound.pl Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
mancredit.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
maninvoice.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
member-flags.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
member-password.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
member.pl Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
memberentry.pl Bug 19493: Force scalar context to prevent future error 2017-10-27 14:09:03 -03:00
members-home.pl Bug 12346: Display the correct number of pending patron modifications on the patron module home page 2017-09-12 12:08:45 -03:00
members-update-do.pl Bug 19400: Reminder to unset gone no address flag after patron makes a modification request 2017-10-27 16:05:51 -03:00
members-update.pl Bug 13757: Better display for attr changes in members-update.pl 2017-03-24 18:45:17 +00:00
mod_debarment.pl Bug 18858: Prevent warn when deleting a borrower debarment 2017-07-13 18:23:29 -03:00
moremember.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
nl-search.pl Bug 15407: Koha::Patron::Categories - replace C4::Category->all 2016-09-08 13:29:03 +00:00
notices.pl Bug 19621: Use Koha.Preference on template side to display/hide "Routing lists" tab 2017-12-22 13:15:36 -03:00
patronimage.pl Bug 17423 - patronimage.pl permission is too restrictive 2016-10-17 23:44:25 +00:00
pay.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
paycollect.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
print_overdues.pl Bug 12933: (QA followup) Rename GetOverdues to GetOverduesForPatron 2015-11-04 12:41:29 -03:00
printfeercpt.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
printinvoice.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
printslip.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
purchase-suggestions.pl Bug 19621: Use Koha.Preference on template side to display/hide "Routing lists" tab 2017-12-22 13:15:36 -03:00
readingrec.pl Bug 19921: Fix update child when only one adult patron category exist 2018-01-15 12:13:59 -03:00
routing-lists.pl Bug 19621: Use Koha.Preference on template side to display/hide "Routing lists" tab 2017-12-22 13:15:36 -03:00
setstatus.pl Bug 16911: Rename extend_subscription with renew_account 2016-09-09 09:45:32 +00:00
statistics.pl Bug 19621: Use Koha.Preference on template side to display/hide "Routing lists" tab 2017-12-22 13:15:36 -03:00
summary-print.pl Bug 19080: Handle non-existing patrons gratefully 2017-08-25 11:03:37 -03:00
update-child.pl Bug 19080: Handle non-existing patrons gratefully 2017-08-25 11:03:37 -03:00