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

(-)a/members/pay.pl (-2 lines)
Lines 225-232 sub borrower_add_additional_fields { Link Here
225
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
225
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
226
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
226
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
227
        $template->param( 'catcode' => $patron_categories->next->categorycode )  if $patron_categories->count == 1;
227
        $template->param( 'catcode' => $patron_categories->next->categorycode )  if $patron_categories->count == 1;
228
    } elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) {
229
        $b_ref->{adultborrower} = 1;
230
    }
228
    }
231
229
232
    if (C4::Context->preference('ExtendedPatronAttributes')) {
230
    if (C4::Context->preference('ExtendedPatronAttributes')) {
(-)a/members/paycollect.pl (-3 lines)
Lines 196-203 sub borrower_add_additional_fields { Link Here
196
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
196
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
197
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
197
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
198
        $template->param( 'catcode' => $patron_categories->next->categorycode )  if $patron_categories->count == 1;
198
        $template->param( 'catcode' => $patron_categories->next->categorycode )  if $patron_categories->count == 1;
199
    } elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) {
200
        $b_ref->{adultborrower} = 1;
201
    }
199
    }
202
200
203
    if (C4::Context->preference('ExtendedPatronAttributes')) {
201
    if (C4::Context->preference('ExtendedPatronAttributes')) {
204
- 

Return to bug 18789