From 01a151b172eb8b9c9cc8d5727fc5a25dc8a92d0f Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 17 Apr 2019 08:59:14 +0000 Subject: [PATCH] Bug 22683: (follow-up) Rename issue to checkout when call the relation --- Koha/Account/Line.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index f14e4f8b3b..44f34e9728 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -63,11 +63,11 @@ Return the checkout linked to this account line if exists sub checkout { my ( $self ) = @_; return unless $self->issue_id; - my $issue_rs = $self->_result->issue; - return Koha::Checkout->_new_from_dbic( $issue_rs ) if $issue_rs; + my $checkout_rs = $self->_result->checkout; + return Koha::Checkout->_new_from_dbic( $checkout_rs ) if $checkout_rs; - my $old_issue_rs = $self->_result->old_issue; - return Koha::Old::Checkout->_new_from_dbic( $old_issue_rs ) if $old_issue_rs; + my $old_checkout_rs = $self->_result->old_checkout; + return Koha::Old::Checkout->_new_from_dbic( $old_checkout_rs ) if $old_checkout_rs; return; } -- 2.11.0