Lines 677-682
foreach my $category_type (qw(C A S P I X)) {
Link Here
|
677 |
$no_categories = 0 if $patron_categories->count > 0; |
677 |
$no_categories = 0 if $patron_categories->count > 0; |
678 |
|
678 |
|
679 |
my @categoryloop; |
679 |
my @categoryloop; |
|
|
680 |
unless ( (!defined $categorycode) || $patron_categories->find( $categorycode ) ){ |
681 |
my $category = Koha::Patron::Categories->find( $categorycode ); |
682 |
$template->param( limited_category => 1 ); |
683 |
push @categoryloop, |
684 |
{ 'category_code' => $category->categorycode, |
685 |
'categoryname' => $category->description, |
686 |
'effective_min_password_length' => $category->effective_min_password_length, |
687 |
'effective_require_strong_password' => $category->effective_require_strong_password. |
688 |
'categorycodeselected' => 1 |
689 |
}; |
690 |
} |
680 |
while ( my $patron_category = $patron_categories->next ) { |
691 |
while ( my $patron_category = $patron_categories->next ) { |
681 |
$categorycode = $patron_category->categorycode unless defined($categorycode); #If none passed in, select the first |
692 |
$categorycode = $patron_category->categorycode unless defined($categorycode); #If none passed in, select the first |
682 |
push @categoryloop, |
693 |
push @categoryloop, |
683 |
- |
|
|