Lines 671-677
foreach my $category_type (qw(C A S P I X)) {
Link Here
|
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 }; |
672 |
my $categories_limits = { category_type => $category_type }; |
673 |
$categories_limits->{canbeguarantee} = 1 if ($guarantor_id); |
673 |
$categories_limits->{canbeguarantee} = 1 if ($guarantor_id); |
674 |
my $patron_categories = Koha::Patron::Categories->search_with_library_limits( $categories_limits, {order_by => ['categorycode']} ); |
674 |
$patron_categories = Koha::Patron::Categories->search_with_library_limits( $categories_limits, {order_by => ['categorycode']} ); |
675 |
$no_categories = 0 if $patron_categories->count > 0; |
675 |
$no_categories = 0 if $patron_categories->count > 0; |
676 |
|
676 |
|
677 |
my @categoryloop; |
677 |
my @categoryloop; |
Lines 819-825
if (C4::Context->preference('EnhancedMessagingPreferences')) {
Link Here
|
819 |
|
819 |
|
820 |
$template->param( borrower_data => \%data ); |
820 |
$template->param( borrower_data => \%data ); |
821 |
$template->param( "show_guarantor" => $categorycode ? Koha::Patron::Categories->find($categorycode)->canbeguarantee : 1); # associate with step to know where you are |
821 |
$template->param( "show_guarantor" => $categorycode ? Koha::Patron::Categories->find($categorycode)->canbeguarantee : 1); # associate with step to know where you are |
822 |
$debug and warn "memberentry step: $step"; |
822 |
my $debug and warn "memberentry step: $step"; |
823 |
$template->param( "step_$step" => 1) if $step; # associate with step to know where u are |
823 |
$template->param( "step_$step" => 1) if $step; # associate with step to know where u are |
824 |
$template->param( step => $step ) if $step; # associate with step to know where u are |
824 |
$template->param( step => $step ) if $step; # associate with step to know where u are |
825 |
|
825 |
|
826 |
- |
|
|