From 022892eb886e196de13e98908370ebde39a85486 Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Wed, 6 Jan 2016 13:19:10 -0700 Subject: [PATCH] Bug 14658: (followup) fix issue with list context on DBIC call While working on bug 14659, it was discovered that the call to ...->guarantor in list context will cause the hash to be misaligned (thus causing hidden => ... to not actually be sent to the template). --- opac/opac-memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index c4ed0b1..c68951a 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -226,7 +226,7 @@ elsif ( $action eq 'edit' ) { #Display logged in borrower's data $template->param( borrower => $borrower, - guarantor => Koha::Borrowers->find($borrowernumber)->guarantor(), + guarantor => scalar Koha::Borrowers->find($borrowernumber)->guarantor(), hidden => GetHiddenFields( $mandatory, 'modification' ), ); -- 2.6.2