Bugzilla – Attachment 173044 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.86 KB, created by
Martin Renvoize (ashimema)
on 2024-10-21 11:42:42 UTC
(
hide
)
Description:
Bug 35721: Replace newly introduced ModItemTransfer calls
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-10-21 11:42:42 UTC
Size:
1.86 KB
patch
obsolete
>From ee904c5664e234c6609a300df7af26f2c2a2fd56 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 | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index 4512460e975..bba0f57e34d 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -171,7 +171,10 @@ if ( $query->param('reserve_id') && $op eq 'cud-affect_reserve') { > ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id, $desk_id ); > > if ($diffBranchSend) { >- ModItemTransfer( $itemnumber, $userenv_branch, $diffBranchSend, '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; > } > } > # check if we have other reserves for this document, if we have a result send the message of transfer >@@ -612,7 +615,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
|
173853
|
173854
|
173855