From e6a16094d9f2e71f54878c200b48bf6d6d32670f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 Jul 2018 09:01:03 -0300 Subject: [PATCH] Bug 20443: Move GetBorrowerAttributes to Koha::Patron - ILSDI FIXME See comment Signed-off-by: Signed-off-by: Nick Clemens --- C4/ILSDI/Services.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 23c4022700..0416f5c82e 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -33,7 +33,6 @@ use HTML::Entities; use CGI qw ( -utf8 ); use DateTime; use C4::Auth; -use C4::Members::Attributes qw(GetBorrowerAttributes); use Koha::DateUtils; use Koha::Biblios; @@ -505,7 +504,9 @@ sub GetPatronInfo { my $show_attributes = $cgi->param('show_attributes'); if ( $show_attributes && $show_attributes eq "1" ) { - my $attrs = GetBorrowerAttributes( $borrowernumber, 1 ); + # FIXME Regression expected here, we do not retrieve the same field as previously + # Waiting for answer on bug 14257 comment 15 + my $attrs = $patron->get_extended_attributes->search({ opac_display => 1 })->unblessed; $borrower->{'attributes'} = $attrs; } -- 2.20.1