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:
parent
410e9bc0e8
commit
e7a84dacfe
1 changed files with 4 additions and 2 deletions
|
@ -330,12 +330,14 @@ elsif ( $action eq 'edit' ) { #Display logged in borrower's data
|
||||||
|
|
||||||
my $captcha = random_string("CCCCC");
|
my $captcha = random_string("CCCCC");
|
||||||
my $patron_param = scalar Koha::Patrons->find( $borrowernumber );
|
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(
|
$template->param(
|
||||||
captcha => $captcha,
|
captcha => $captcha,
|
||||||
captcha_digest => md5_base64($captcha),
|
captcha_digest => md5_base64($captcha),
|
||||||
patron => $patron_param,
|
patron => $patron_param
|
||||||
has_guarantor_flag => $patron_param->guarantor_relationships->guarantors->_resultset->count
|
|
||||||
);
|
);
|
||||||
|
|
||||||
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
|
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||||
|
|
Loading…
Reference in a new issue