https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16892 --- Comment #50 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to M. Tompsett from comment #49)
Usually I am not in favour of over-checking everything but it sounds like it is needed here (in order to avoid the 500).
I'm having the darnedest time with my $patron_category = Koha::Patron::Categories->find( $valid_category_code ); being undef. :( -- Working on it.
Works for me: use Koha::Patron::Categories; my $pt = Koha::Patron::Categories->find('PT'); my $xxx = Koha::Patron::Categories->find('XXX'); say $pt; say $xxx; Koha::Patron::Category=HASH(0x28af7f8) Use of uninitialized value $xxx in say at t.pl line 5. -- You are receiving this mail because: You are watching all bug changes.