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

(-)a/members/memberentry.pl (-3 / +2 lines)
Lines 676-682 foreach my $category_type (qw(C A S P I X)) { Link Here
676
    my $patron_categories = Koha::Patron::Categories->search_with_library_limits({ category_type => $category_type }, {order_by => ['categorycode']});
676
    my $patron_categories = Koha::Patron::Categories->search_with_library_limits({ category_type => $category_type }, {order_by => ['categorycode']});
677
    my $categories_limits = { category_type => $category_type };
677
    my $categories_limits = { category_type => $category_type };
678
    $categories_limits->{canbeguarantee} = 1 if ($guarantor_id);
678
    $categories_limits->{canbeguarantee} = 1 if ($guarantor_id);
679
    my $patron_categories = Koha::Patron::Categories->search_with_library_limits( $categories_limits, {order_by => ['categorycode']} );
679
    $patron_categories = Koha::Patron::Categories->search_with_library_limits( $categories_limits, {order_by => ['categorycode']} );
680
    $no_categories = 0 if $patron_categories->count > 0;
680
    $no_categories = 0 if $patron_categories->count > 0;
681
681
682
    my @categoryloop;
682
    my @categoryloop;
Lines 824-830 if (C4::Context->preference('EnhancedMessagingPreferences')) { Link Here
824
824
825
$template->param( borrower_data => \%data );
825
$template->param( borrower_data => \%data );
826
$template->param( "show_guarantor" => $categorycode ? Koha::Patron::Categories->find($categorycode)->canbeguarantee : 1); # associate with step to know where you are
826
$template->param( "show_guarantor" => $categorycode ? Koha::Patron::Categories->find($categorycode)->canbeguarantee : 1); # associate with step to know where you are
827
$debug and warn "memberentry step: $step";
827
my $debug and warn "memberentry step: $step";
828
$template->param( "step_$step"  => 1) if $step;	# associate with step to know where u are
828
$template->param( "step_$step"  => 1) if $step;	# associate with step to know where u are
829
$template->param(  step  => $step   ) if $step;	# associate with step to know where u are
829
$template->param(  step  => $step   ) if $step;	# associate with step to know where u are
830
830
831
- 

Return to bug 12446