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

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

Return to bug 18789