From 85012cc0616371b1c29a4eab39829ef9d250d266 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: Nick Clemens Signed-off-by: Martin Renvoize --- 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.39.5