Bug 4461: (follow-up) Add missing relationship accessor

I think this was a simple case of Aliesha missing a file when commiting.

So I could proceed with testing I just quickly re-implimented the patron
relationship accessor.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: David Nind <david@davidnind.com>
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:
Martin Renvoize 2020-03-11 09:06:09 +00:00
parent 185adc1674
commit fefb95b2e7
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -33,6 +33,20 @@ Koha::ProblemReport - Koha Problem Report Object class
=cut
=head3 patron
my $patron = $report->patron
Return the patron for who the report has been done
=cut
sub patron {
my ( $self ) = @_;
my $patron_rs = $self->_result->borrowernumber;
return Koha::Patron->_new_from_dbic( $patron_rs );
}
=head3 type
=cut