From 2ee70dd0826a7adc0a1f35973dec3bed9f0f6c58 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Jun 2017 13:58:48 -0300 Subject: [PATCH] Bug 18789: Remove adultborrower from the pay* scripts This flag is not used in the templates Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- members/pay.pl | 2 -- members/paycollect.pl | 2 -- 2 files changed, 4 deletions(-) diff --git a/members/pay.pl b/members/pay.pl index c42c631e72..14329ef224 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -224,8 +224,6 @@ sub borrower_add_additional_fields { my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; $template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; - } elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) { - $b_ref->{adultborrower} = 1; } if (C4::Context->preference('ExtendedPatronAttributes')) { diff --git a/members/paycollect.pl b/members/paycollect.pl index 5d8d994a53..32f0370647 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -195,8 +195,6 @@ sub borrower_add_additional_fields { my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; $template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; - } elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) { - $b_ref->{adultborrower} = 1; } if (C4::Context->preference('ExtendedPatronAttributes')) { -- 2.39.5