Bug 20691: (QA follow-up) Fix self-reg

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Tomás Cohen Arazi 2019-09-17 10:45:05 -03:00 committed by Martin Renvoize
parent 410e9bc0e8
commit e7a84dacfe
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -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 };