Bugzilla – Attachment 175760 Details for
Bug 38663
Add additional fields to libraries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38663: DBIC: Add AdditionalFields to Library
Bug-38663-DBIC-Add-AdditionalFields-to-Library.patch (text/plain), 1.34 KB, created by
Martin Renvoize (ashimema)
on 2024-12-19 13:10:13 UTC
(
hide
)
Description:
Bug 38663: DBIC: Add AdditionalFields to Library
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-12-19 13:10:13 UTC
Size:
1.34 KB
patch
obsolete
>From 7d8b461b2946d399384a9ba932bcf928e11f7747 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 10 Dec 2024 14:43:47 +0000 >Subject: [PATCH] Bug 38663: DBIC: Add AdditionalFields to Library > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Schema/Result/Branch.pm | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm >index c9d55a81826..aeed6695d55 100644 >--- a/Koha/Schema/Result/Branch.pm >+++ b/Koha/Schema/Result/Branch.pm >@@ -999,6 +999,22 @@ __PACKAGE__->has_many( > # Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25 > # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A > >+__PACKAGE__->has_many( >+ "additional_field_values", >+ "Koha::Schema::Result::AdditionalFieldValue", >+ sub { >+ my ($args) = @_; >+ >+ return { >+ "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.branchcode" }, >+ >+ "$args->{foreign_alias}.field_id" => >+ { -in => \'(SELECT id FROM additional_fields WHERE tablename="branches")' }, >+ }; >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > __PACKAGE__->add_columns( > '+pickup_location' => { is_boolean => 1 }, > '+public' => { is_boolean => 1 } >-- >2.47.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 38663
:
175355
|
175356
|
175357
|
175358
|
175359
|
175370
|
175757
|
175758
|
175759
|
175760
|
175761
|
175762
|
176214
|
176215
|
176216
|
176217
|
176218
|
176219
|
176220
|
176221
|
176222
|
176223
|
176224
|
176225
|
176296
|
176781
|
176782
|
176783
|
176784
|
176785
|
176786
|
176787
|
176788
|
176797
|
176799
|
176800
|
176801
|
176802
|
176803
|
176804
|
176805