Lines 658-664
my $patron_categories = Koha::Patron::Categories->search_with_library_limits(
Link Here
|
658 |
); |
658 |
); |
659 |
my $no_categories = ! $patron_categories->count; |
659 |
my $no_categories = ! $patron_categories->count; |
660 |
my $categories = {}; |
660 |
my $categories = {}; |
661 |
foreach my $patron_category ($patron_categories->as_list ) { |
661 |
my @patron_categories = $patron_categories->as_list; |
|
|
662 |
unless ( $patron_categories->find( $category->id ) ){ |
663 |
$template->param( limited_category => 1 ); |
664 |
push @patron_categories, $category; |
665 |
} |
666 |
foreach my $patron_category ( @patron_categories ) { |
662 |
push @{ $categories->{ $patron_category->category_type } }, $patron_category; |
667 |
push @{ $categories->{ $patron_category->category_type } }, $patron_category; |
663 |
} |
668 |
} |
664 |
|
669 |
|
665 |
- |
|
|