@@ -, +, @@ $ kshell k$ prove t/db_dependent/Koha/Recall* --- Koha/Recall.pm | 4 ++-- Koha/Schema/Result/Recall.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/Koha/Recall.pm +++ a/Koha/Recall.pm @@ -78,7 +78,7 @@ Returns the related Koha::Patron object for this recall. sub patron { my ( $self ) = @_; - my $patron_rs = $self->_result->borrower; + my $patron_rs = $self->_result->patron; return unless $patron_rs; return Koha::Patron->_new_from_dbic( $patron_rs ); } @@ -93,7 +93,7 @@ Returns the related Koha::Library object for this recall. sub library { my ( $self ) = @_; - my $library_rs = $self->_result->branch; + my $library_rs = $self->_result->library; return unless $library_rs; return Koha::Library->_new_from_dbic( $library_rs ); } --- a/Koha/Schema/Result/Recall.pm +++ a/Koha/Schema/Result/Recall.pm @@ -312,14 +312,14 @@ __PACKAGE__->belongs_to( ); __PACKAGE__->belongs_to( - "borrower", + "patron", "Koha::Schema::Result::Borrower", { borrowernumber => "borrowernumber" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); __PACKAGE__->belongs_to( - "branch", + "library", "Koha::Schema::Result::Branch", { branchcode => "branchcode" }, { --