From d09444c735c9879f7aebe8139f0a921a1076940b Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 19 Aug 2019 10:31:41 -0300 Subject: [PATCH] Bug 14570: (QA follow-up) Call Koha::Patron->find in scalar context This patch prevents opac/opac-memberentry.pl from exploding. To test: - Login with a known user in the OPAC - Open the opac/opac-memberentry.pl page => FAIL: It explodes - Apply this patch - Restart all the things just in case: $ restart_all - Reload the page => SUCCESS: Things work! Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- 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 d1e484a671..7f5eecb11d 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -333,7 +333,7 @@ my $captcha = random_string("CCCCC"); $template->param( captcha => $captcha, captcha_digest => md5_base64($captcha), - patron => Koha::Patrons->find( $borrowernumber ), + patron => scalar Koha::Patrons->find( $borrowernumber ), ); output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 }; -- 2.39.5