[Koha-bugs] [Bug 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 12 11:06:38 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407

--- Comment #61 from Marcel de Rooy <m.de.rooy at 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.


More information about the Koha-bugs mailing list