@@ -, +, @@ --- Koha/Template/Plugin/Categories.pm | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/admin/policy.tt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) --- a/Koha/Template/Plugin/Categories.pm +++ a/Koha/Template/Plugin/Categories.pm @@ -25,7 +25,11 @@ use Koha::Patron::Categories; sub all { my ( $self, $params ) = @_; + my $unfiltered = delete $params->{unfiltered} || 0; return Koha::Patron::Categories->search_limited($params); + return $unfiltered + ? Koha::Patron::Categories->search( $params ) + : Koha::Patron::Categories->search_limited( $params ) } sub GetName { --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/policy.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/policy.tt @@ -56,7 +56,7 @@ }; // TODO: Account for branch category limits Koha.PATRON_CATEGORIES = { - [% FOREACH category IN Categories.all() %] + [% FOREACH category IN Categories.all( unfiltered => 1 ) %] "[% category.categorycode %]": [% To.json( category ) %], [% END %] }; --