Bugzilla – Attachment 187968 Details for
Bug 40517
Allow grouping existing holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40517: Add hold groups relationship to patron
Bug-40517-Add-hold-groups-relationship-to-patron.patch (text/plain), 1.13 KB, created by
Pedro Amorim
on 2025-10-16 08:41:34 UTC
(
hide
)
Description:
Bug 40517: Add hold groups relationship to patron
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-10-16 08:41:34 UTC
Size:
1.13 KB
patch
obsolete
>From d51343bc6a4aec5854c3ed29800db702cb7fb9ab Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Mon, 13 Oct 2025 08:40:19 +0000 >Subject: [PATCH] Bug 40517: Add hold groups relationship to patron > >--- > Koha/Patron.pm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 5d68d7c97dc..489cf7a69f6 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -46,6 +46,7 @@ use Koha::Encryption; > use Koha::Exceptions; > use Koha::Exceptions::Password; > use Koha::Holds; >+use Koha::HoldGroups; > use Koha::ILL::Requests; > use Koha::ItemTypes; > use Koha::Old::Checkouts; >@@ -1888,6 +1889,20 @@ sub old_holds { > return Koha::Old::Holds->_new_from_dbic($old_holds_rs); > } > >+=head3 hold_groups >+ >+my $hold_groups = $patron->hold_groups >+ >+Return all of this patron's hold groups >+ >+=cut >+ >+sub hold_groups { >+ my ($self) = @_; >+ my $hold_group_rs = $self->_result->hold_groups->search( {}, { order_by => 'hold_group_id' } ); >+ return Koha::HoldGroups->_new_from_dbic($hold_group_rs); >+} >+ > =head3 curbside_pickups > > my $curbside_pickups = $patron->curbside_pickups; >-- >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 40517
:
184640
|
184641
|
184642
|
184643
|
184644
|
184645
|
184646
|
184729
|
184732
|
184733
|
184734
|
184735
|
184736
|
184737
|
184738
|
184739
|
185217
|
186672
|
186673
|
186674
|
186675
|
186676
|
186677
|
186678
|
186679
|
186680
|
186745
|
186746
|
186747
|
186748
|
186749
|
186750
|
186751
|
186752
|
186753
|
187789
|
187790
|
187791
|
187792
|
187793
|
187794
|
187795
|
187796
|
187797
|
187801
|
187802
|
187803
|
187804
|
187805
|
187806
|
187807
|
187808
|
187809
|
187810
|
187811
|
187812
|
187965
|
187966
|
187967
| 187968 |
187969
|
187970
|
187971
|
187972
|
187973
|
187974
|
187975
|
187976
|
188293
|
188294
|
188343
|
188422