From e7a84dacfec76325819e39c5ef0dacf5ff1ffdea 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 Signed-off-by: Martin Renvoize --- 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 1874116913..7dfcda37fc 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -330,12 +330,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.39.5