[Bug 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
12 Aug
2016
12 Aug
'16
11:06 a.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #61 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- - my %cathash = ($line eq 'categorycode' or $column eq 'categorycode') ? &catcodes_hash : (); - push @loopfilter, {debug=>1, crit=>"\%cathash", filter=>join(", ", map {$cathash{$_}} sort keys %cathash)}; + my $patron_categories = Koha::Patron::Categories->search({}, {order_by => ['categorycode']}); + push @loopfilter, {debug=>1, crit=>"\%cathash", filter=>join(", ", map { $_->categorycode . ' (' . ( $_->description || 'NO_DESCRIPTION' ) . ')'} $patron_categories->as_list )}; You removed cathash, but left it in the push -- You are receiving this mail because: You are watching all bug changes.
3625
Age (days ago)
3625
Last active (days ago)
0 comments
1 participants
participants (1)
-
bugzilla-daemon@bugs.koha-community.org