Bugzilla – Attachment 179236 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: Implement move_hold_item in request.pl
Bug-31698-Implement-moveholditem-in-requestpl.patch (text/plain), 1.44 KB, created by
Lucas Gass (lukeg)
on 2025-03-12 21:34:28 UTC
(
hide
)
Description:
Bug 31698: Implement move_hold_item in request.pl
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-03-12 21:34:28 UTC
Size:
1.44 KB
patch
obsolete
>From 983c2ff6785671dcb67646a2731a5e050c393d86 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 12 Mar 2025 21:34:09 +0000 >Subject: [PATCH] Bug 31698: Implement move_hold_item in request.pl > >--- > reserve/request.pl | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/reserve/request.pl b/reserve/request.pl >index c5e354aa7d2..c56c2287b79 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -44,6 +44,7 @@ use C4::Search qw( enabled_staff_search_views ); > use Koha::Biblios; > use Koha::Checkouts; > use Koha::Holds; >+use Koha::Hold; > use Koha::CirculationRules; > use Koha::Items; > use Koha::ItemTypes; >@@ -109,6 +110,20 @@ if ( $op eq 'cud-move' ) { > $next_priority, $first_priority, $last_priority > ); > } >+} elsif ( $op eq 'cud-move_hold_item' ) { >+ my $new_itemnumber = $input->param('new_itemnumber'); >+ my $new_biblionumber = $input->param('new_biblionumber'); >+ my @hold_ids = $input->multi_param('hold_id'); >+ foreach my $hold_id (@hold_ids) { >+ my $hold = Koha::Holds->find($hold_id); >+ $hold->move_hold_item( >+ { >+ new_itemnumber => $new_itemnumber, >+ new_biblionumber => $new_biblionumber, >+ } >+ ); >+ } >+ > } elsif ( $op eq 'cud-cancel' ) { > my $reserve_id = $input->param('reserve_id'); > my $cancellation_reason = $input->param("cancellation-reason"); >-- >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