Bugzilla – Attachment 180501 Details for
Bug 39177
Add additional fields support to credit types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39177: DBIC Add AdditionalFields to AccountCreditType
Bug-39177-DBIC-Add-AdditionalFields-to-AccountCred.patch (text/plain), 1.32 KB, created by
Brendan Gallagher
on 2025-04-03 12:31:04 UTC
(
hide
)
Description:
Bug 39177: DBIC Add AdditionalFields to AccountCreditType
Filename:
MIME Type:
Creator:
Brendan Gallagher
Created:
2025-04-03 12:31:04 UTC
Size:
1.32 KB
patch
obsolete
>From 0b826a62886e64b43407cc1ee8e510b8fa61ad6e Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 20 Feb 2025 12:46:01 +0000 >Subject: [PATCH] Bug 39177: DBIC Add AdditionalFields to AccountCreditType > >Sponsored-by: PTFS Europe <https://ptfs-europe.com> >Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com> >--- > Koha/Schema/Result/AccountCreditType.pm | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/Koha/Schema/Result/AccountCreditType.pm b/Koha/Schema/Result/AccountCreditType.pm >index d246ebad99..135202caf4 100644 >--- a/Koha/Schema/Result/AccountCreditType.pm >+++ b/Koha/Schema/Result/AccountCreditType.pm >@@ -134,6 +134,22 @@ __PACKAGE__->add_columns( > '+archived' => { is_boolean => 1 } > ); > >+__PACKAGE__->has_many( >+ "additional_field_values", >+ "Koha::Schema::Result::AdditionalFieldValue", >+ sub { >+ my ($args) = @_; >+ >+ return { >+ "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.code" }, >+ >+ "$args->{foreign_alias}.field_id" => >+ { -in => \'(SELECT id FROM additional_fields WHERE tablename="account_credit_types")' }, >+ }; >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > sub koha_objects_class { > 'Koha::Account::CreditTypes'; > } >-- >2.39.5
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 39177
:
178409
|
178410
|
180499
|
180500
| 180501 |
180502