Bug 41695: Fix rejecter in suggestion.pm
TEST PLAN: 1 - Apply tests patch 2 - Run 'prove t/db_dependent/Koha/Suggestions.t' -> it fails on rejecter 3 - Apply this patch 4 - Run 'prove t/db_dependent/Koha/Suggestions.t' -> it works Note: this patch also provide tests for remaining accessors in the subtest Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
e99ad89f7c
commit
5262ff688b
|
|
@ -195,7 +195,7 @@ Returns the rejecter of the suggestion (Koha::Patron for rejectebby field)
|
|||
|
||||
sub rejecter {
|
||||
my ($self) = @_;
|
||||
my $rejecter_rs = $self->_result->managedby;
|
||||
my $rejecter_rs = $self->_result->rejectedby;
|
||||
return unless $rejecter_rs;
|
||||
return Koha::Patron->_new_from_dbic($rejecter_rs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue