Lines 669-674
my $no_categories = 1;
Link Here
|
669 |
my $no_add; |
669 |
my $no_add; |
670 |
foreach my $category_type (qw(C A S P I X)) { |
670 |
foreach my $category_type (qw(C A S P I X)) { |
671 |
my $patron_categories = Koha::Patron::Categories->search_with_library_limits({ category_type => $category_type }, {order_by => ['categorycode']}); |
671 |
my $patron_categories = Koha::Patron::Categories->search_with_library_limits({ category_type => $category_type }, {order_by => ['categorycode']}); |
|
|
672 |
my $categories_limits = { category_type => $category_type }; |
673 |
$categories_limits->{canbeguarantee} = 1 if ($guarantor_id); |
674 |
my $patron_categories = Koha::Patron::Categories->search_with_library_limits( $categories_limits, {order_by => ['categorycode']} ); |
672 |
$no_categories = 0 if $patron_categories->count > 0; |
675 |
$no_categories = 0 if $patron_categories->count > 0; |
673 |
|
676 |
|
674 |
my @categoryloop; |
677 |
my @categoryloop; |
675 |
- |
|
|