From 59232e4bc59234a3f7b78b678d189a263f198b21 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 --- 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.22.1