Bugzilla – Attachment 179235 Details for
Bug 31698
Add ability to move a hold to a new bibliographic record/item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31698: Add new move_hold_item subroutine to Hold.pm
Bug-31698-Add-new-moveholditem-subroutine-to-Holdp.patch (text/plain), 1.05 KB, created by
Lucas Gass (lukeg)
on 2025-03-12 21:32:31 UTC
(
hide
)
Description:
Bug 31698: Add new move_hold_item subroutine to Hold.pm
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-03-12 21:32:31 UTC
Size:
1.05 KB
patch
obsolete
>From 6deb0034fa9e2a7c3058c396fc7ed8d4cb2884c2 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 12 Mar 2025 21:31:35 +0000 >Subject: [PATCH] Bug 31698: Add new move_hold_item subroutine to Hold.pm > >--- > Koha/Hold.pm | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > >diff --git a/Koha/Hold.pm b/Koha/Hold.pm >index b3bf4a02b76..da4bf1767ee 100644 >--- a/Koha/Hold.pm >+++ b/Koha/Hold.pm >@@ -178,6 +178,30 @@ sub delete { > return $deleted; > } > >+=head3 move_hold_item >+ >+$hold->move_hold_item(); >+ >+=cut >+ >+sub move_hold_item { >+ my ( $self, $args ) = @_; >+ >+ my $new_itemnumber = $args->{new_itemnumber}; >+ my $new_biblionumber = $args->{new_biblionumber}; >+ >+ if ($new_itemnumber) { >+ my $new_item = Koha::Items->find( { itemnumber => $new_itemnumber } ); >+ $self->update( >+ { >+ itemnumber => $new_item->itemnumber, >+ biblionumber => $new_item->biblionumber >+ } >+ ); >+ } >+ return $self; >+} >+ > =head3 set_transfer > > =cut >-- >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 31698
:
179226
|
179235
|
179236
|
179279
|
179287
|
179290
|
179291
|
179292
|
179295
|
179704
|
179711
|
179713
|
181222
|
181223
|
181224
|
181225
|
181226
|
181228
|
181229
|
181230
|
181231
|
181232
|
181233
|
181234
|
181929
|
181930
|
181944
|
181945
|
181946
|
181947
|
181948
|
181951
|
181952
|
181953
|
181954
|
181955
|
181956
|
181957
|
181958
|
181959
|
181960
|
181961
|
181962
|
182639
|
182640
|
182641