Bugzilla – Attachment 173356 Details for
Bug 35721
Replace ModItemTransfer calls in circ/returns.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35721: Replace newly introduced ModItemTransfer calls
Bug-35721-Replace-newly-introduced-ModItemTransfer.patch (text/plain), 1.96 KB, created by
Martin Renvoize (ashimema)
on 2024-10-25 12:42:12 UTC
(
hide
)
Description:
Bug 35721: Replace newly introduced ModItemTransfer calls
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-10-25 12:42:12 UTC
Size:
1.96 KB
patch
obsolete
>From 346acdc466cdc79939a7a1559b4593c94596b6d0 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 21 Oct 2024 12:42:06 +0100 >Subject: [PATCH] Bug 35721: Replace newly introduced ModItemTransfer calls > >--- > circ/returns.pl | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index 65169d42f07..8a217889542 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -170,8 +170,13 @@ if ( $query->param('reserve_id') && $op eq 'cud-affect_reserve') { > # i.e., whether to apply waiting status > ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id, $desk_id ); > >+ my $hold = Koha::Holds->find($reserve_id); > if ($diffBranchSend) { >- ModItemTransfer( $itemnumber, $userenv_branch, $diffBranchSend, 'Reserve' ); >+ my $tobranch = Koha::Libraries->find( $hold->branchcode ); >+ >+ # Add transfer, enqueue if one is already in the queue, and immediately set to in transit >+ my $transfer = $item->request_transfer( { to => $tobranch, reason => 'Reserve', enqueue => 1 } ); >+ $transfer->transit; > } > } > # check if we have other reserves for this document, if we have a result send the message of transfer >@@ -612,7 +617,10 @@ if ( $messages->{'ResFound'} ) { > ModReserveAffect( $itemnumber, $reserve->{borrowernumber}, $diffBranchSend, $reserve->{reserve_id}, $desk_id ); > > if ($diffBranchSend) { >- ModItemTransfer( $itemnumber, $item->holdingbranch, $reserve->{branchcode}, 'Reserve' ); >+ my $tobranch = Koha::Libraries->find( $reserve->{branchcode} ); >+ # Add transfer, enqueue if one is already in the queue, and immediately set to in transit >+ my $transfer = $item->request_transfer( { to => $tobranch, reason => 'Reserve', enqueue => 1 } ); >+ $transfer->transit; > } > > $template->param( >-- >2.47.0
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 35721
:
160625
|
160631
|
160632
|
160649
|
160665
|
160691
|
168279
|
168280
|
172777
|
173043
|
173044
|
173356
|
173359
|
173360
|
173370