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:
parent
185adc1674
commit
fefb95b2e7
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue