Bug 19809: Remove some new occurrences

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-01-22 11:50:19 +01:00 committed by Martin Renvoize
parent 0e73e723ef
commit 127dfc0b8f
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 4 additions and 4 deletions

View File

@ -414,7 +414,7 @@ sub category {
sub image {
my ( $self ) = @_;
return scalar Koha::Patron::Images->find( $self->borrowernumber );
return Koha::Patron::Images->find( $self->borrowernumber );
}
=head3 library

View File

@ -82,7 +82,7 @@ sub guarantor {
return unless $self->guarantor_id;
return scalar Koha::Patrons->find( $self->guarantor_id );
return Koha::Patrons->find( $self->guarantor_id );
}
=head3 guarantee
@ -94,7 +94,7 @@ Returns the Koha::Patron object for the guarantee
sub guarantee {
my ( $self ) = @_;
return scalar Koha::Patrons->find( $self->guarantee_id );
return Koha::Patrons->find( $self->guarantee_id );
}
=head3 type

View File

@ -332,7 +332,7 @@ elsif ( $action eq 'edit' ) { #Display logged in borrower's data
}
my $captcha = random_string("CCCCC");
my $patron_param = scalar Koha::Patrons->find( $borrowernumber );
my $patron_param = Koha::Patrons->find( $borrowernumber );
$template->param(
has_guarantor_flag => $patron_param->guarantor_relationships->guarantors->_resultset->count
) if $patron_param;