Bugzilla – Attachment 88062 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 DBIC relationship accessor
Bug-22683-follow-up-Rename-DBIC-relationship-acces.patch (text/plain), 1.40 KB, created by
Martin Renvoize (ashimema)
on 2019-04-16 12:23:14 UTC
(
hide
)
Description:
Bug 22683: (follow-up) Rename DBIC relationship accessor
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-16 12:23:14 UTC
Size:
1.40 KB
patch
obsolete
>From ef5e5b49c7fee7ec4e753f13c4088f79385aefaa Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 16 Apr 2019 13:22:00 +0100 >Subject: [PATCH] Bug 22683: (follow-up) Rename DBIC relationship accessor > >Rename the DBIC side accessors to match the Koha::Object side one to >make the 'prefetch' simpler to guess. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Schema/Result/Accountline.pm | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/Koha/Schema/Result/Accountline.pm b/Koha/Schema/Result/Accountline.pm >index 329f11b4e0..b729292f12 100644 >--- a/Koha/Schema/Result/Accountline.pm >+++ b/Koha/Schema/Result/Accountline.pm >@@ -295,7 +295,7 @@ sub koha_object_class { > 'Koha::Account::Line'; > } > >-=head2 issue >+=head2 checkout > > Type: belongs_to > >@@ -307,7 +307,7 @@ if we add a proper foreign key for accountlines.issue_id > =cut > > __PACKAGE__->belongs_to( >- "issue", >+ "checkout", > "Koha::Schema::Result::Issue", > { "foreign.issue_id" => "self.issue_id" }, > { >@@ -316,7 +316,7 @@ __PACKAGE__->belongs_to( > }, > ); > >-=head2 old_issue >+=head2 old_checkout > > Type: belongs_to > >@@ -328,7 +328,7 @@ if we add a proper foreign key for accountlines.issue_id > =cut > > __PACKAGE__->belongs_to( >- "old_issue", >+ "old_checkout", > "Koha::Schema::Result::OldIssue", > { "foreign.issue_id" => "self.issue_id" }, > { >-- >2.20.1
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