Bugzilla – Attachment 135829 Details for
Bug 30612
Add account_lines method to Koha::[Old::]Checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30612: Update schema files
Bug-30612-Update-schema-files.patch (text/plain), 1.41 KB, created by
Kyle M Hall (khall)
on 2022-06-08 17:44:43 UTC
(
hide
)
Description:
Bug 30612: Update schema files
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-06-08 17:44:43 UTC
Size:
1.41 KB
patch
obsolete
>From 7db927478963eed4ebb1ccbc1937e9d17f1f9884 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 8 Jun 2022 13:43:01 -0400 >Subject: [PATCH] Bug 30612: Update schema files > >--- > Koha/Schema/Result/Issue.pm | 7 +++++++ > Koha/Schema/Result/OldIssue.pm | 7 +++++++ > 2 files changed, 14 insertions(+) > >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index 5d26b5b563..ea43957d7f 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -388,6 +388,13 @@ __PACKAGE__->might_have( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+__PACKAGE__->has_many( >+ "accountlines", >+ "Koha::Schema::Result::Accountline", >+ { "foreign.issue_id" => "self.issue_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > sub koha_object_class { > 'Koha::Checkout'; > } >diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm >index d119555564..90d6ab5d41 100644 >--- a/Koha/Schema/Result/OldIssue.pm >+++ b/Koha/Schema/Result/OldIssue.pm >@@ -351,6 +351,13 @@ Related object: L<Koha::Schema::Result::ReturnClaim> > > =cut > >+__PACKAGE__->has_many( >+ "accountlines", >+ "Koha::Schema::Result::Accountline", >+ { "foreign.issue_id" => "self.issue_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > __PACKAGE__->might_have( > "return_claim", > "Koha::Schema::Result::ReturnClaim", >-- >2.32.0 (Apple Git-132)
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 30612
:
133841
|
134567
|
135827
|
135828
|
135829
|
138461
|
138462
|
138463
|
138464
|
138465