From 9155b0a7cd187aa4f2e809fb4d98234567aba175 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 17 Sep 2019 10:45:05 -0300 Subject: [PATCH] Bug 20691: (QA follow-up) Fix self-reg Signed-off-by: Tomas Cohen Arazi --- opac/opac-memberentry.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index a9986461bf..62cdd0d205 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -333,12 +333,14 @@ elsif ( $action eq 'edit' ) { #Display logged in borrower's data my $captcha = random_string("CCCCC"); my $patron_param = scalar Koha::Patrons->find( $borrowernumber ); +$template->param( + has_guarantor_flag => $patron_param->guarantor_relationships->guarantors->_resultset->count +) if $patron_param; $template->param( captcha => $captcha, captcha_digest => md5_base64($captcha), - patron => $patron_param, - has_guarantor_flag => $patron_param->guarantor_relationships->guarantors->_resultset->count + patron => $patron_param ); output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 }; -- 2.23.0