Browse Source

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>
remotes/origin/19.11.x
Tomás Cohen Arazi 5 years ago
committed by Martin Renvoize
parent
commit
e7a84dacfe
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 6
      opac/opac-memberentry.pl

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

Loading…
Cancel
Save