View | Details | Raw Unified | Return to bug 15522
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Categories.pm (+4 lines)
Lines 25-31 use Koha::Patron::Categories; Link Here
25
25
26
sub all {
26
sub all {
27
    my ( $self, $params ) = @_;
27
    my ( $self, $params ) = @_;
28
    my $unfiltered = delete $params->{unfiltered} || 0;
28
    return Koha::Patron::Categories->search_limited($params);
29
    return Koha::Patron::Categories->search_limited($params);
30
    return $unfiltered
31
      ? Koha::Patron::Categories->search( $params )
32
      : Koha::Patron::Categories->search_limited( $params )
29
}
33
}
30
34
31
sub GetName {
35
sub GetName {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/policy.tt (-2 / +1 lines)
Lines 56-62 Link Here
56
    };
56
    };
57
    // TODO: Account for branch category limits
57
    // TODO: Account for branch category limits
58
    Koha.PATRON_CATEGORIES = {
58
    Koha.PATRON_CATEGORIES = {
59
        [% FOREACH category IN Categories.all() %]
59
        [% FOREACH category IN Categories.all( unfiltered => 1 ) %]
60
            "[% category.categorycode %]": [% To.json( category ) %],
60
            "[% category.categorycode %]": [% To.json( category ) %],
61
        [% END %]
61
        [% END %]
62
    };
62
    };
63
- 

Return to bug 15522