Bugzilla – Attachment 88147 Details for
Bug 22683
Make issue and old_issue prefetchable from Koha::Account::Line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22683: (follow-up) Rename issue to checkout when call the relation
Bug-22683-follow-up-Rename-issue-to-checkout-when-.patch (text/plain), 1.16 KB, created by
Josef Moravec
on 2019-04-17 08:59:32 UTC
(
hide
)
Description:
Bug 22683: (follow-up) Rename issue to checkout when call the relation
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-04-17 08:59:32 UTC
Size:
1.16 KB
patch
obsolete
>From 01a151b172eb8b9c9cc8d5727fc5a25dc8a92d0f Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22683
:
87751
|
88061
|
88062
| 88147