Bugzilla – Attachment 163828 Details for
Bug 35353
Add API endpoint to fetch patron's previous holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35353: DBIC specific
Bug-35353-DBIC-specific.patch (text/plain), 1.46 KB, created by
Jonathan Druart
on 2024-03-25 16:21:29 UTC
(
hide
)
Description:
Bug 35353: DBIC specific
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-03-25 16:21:29 UTC
Size:
1.46 KB
patch
obsolete
>From e0858530024ffeb406fd6405dbea62ccf4305638 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Dec 2023 11:23:52 +0100 >Subject: [PATCH] Bug 35353: DBIC specific > >--- > Koha/Schema/Result/OldReserve.pm | 12 ++++++++++++ > Koha/Schema/Result/Reserve.pm | 7 +++++++ > 2 files changed, 19 insertions(+) > >diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm >index e78ea520c09..2221f5f8296 100644 >--- a/Koha/Schema/Result/OldReserve.pm >+++ b/Koha/Schema/Result/OldReserve.pm >@@ -446,6 +446,18 @@ __PACKAGE__->belongs_to( > }, > ); > >+__PACKAGE__->belongs_to( >+ "pickup_library", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branchcode" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "SET NULL", >+ on_update => "CASCADE", >+ }, >+); >+ > __PACKAGE__->add_columns( > '+item_level_hold' => { is_boolean => 1 }, > '+lowestPriority' => { is_boolean => 1 }, >diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm >index b6402955c11..a91c14c9a08 100644 >--- a/Koha/Schema/Result/Reserve.pm >+++ b/Koha/Schema/Result/Reserve.pm >@@ -523,4 +523,11 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+__PACKAGE__->belongs_to( >+ "pickup_library", >+ "Koha::Schema::Result::Branch", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ > 1; >-- >2.34.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 35353
:
159055
|
159067
|
163828
|
163829
|
163833
|
163834
|
164298
|
164299