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

(-)a/Koha/Template/Plugin/Categories.pm (+5 lines)
Lines 28-33 sub all { Link Here
28
    return Koha::Patron::Categories->search($params);
28
    return Koha::Patron::Categories->search($params);
29
}
29
}
30
30
31
sub limited {
32
    my ( $self, $params ) = @_;
33
    return Koha::Patron::Categories->search_with_library_limits($params);
34
}
35
31
sub GetName {
36
sub GetName {
32
    my ( $self, $categorycode ) = @_;
37
    my ( $self, $categorycode ) = @_;
33
38
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc (-2 / +1 lines)
Lines 1-7 Link Here
1
[% INCLUDE 'blocking_errors.inc' %]
1
[% INCLUDE 'blocking_errors.inc' %]
2
[% USE Categories %]
2
[% USE Categories %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% SET categories = Categories.all %]
4
[% SET categories = Categories.limited %]
5
5
6
[% UNLESS ( no_add ) %]
6
[% UNLESS ( no_add ) %]
7
<div id="toolbar" class="btn-toolbar">
7
<div id="toolbar" class="btn-toolbar">
8
- 

Return to bug 31421