Bugzilla – Attachment 174805 Details for
Bug 28294
C4::Circulation::updateWrongTransfer should be moved into Koha::
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28294: (follow-up) Adjust call to request transfer
Bug-28294-follow-up-Adjust-call-to-request-transfe.patch (text/plain), 1.25 KB, created by
Nick Clemens (kidclamp)
on 2024-11-19 18:30:30 UTC
(
hide
)
Description:
Bug 28294: (follow-up) Adjust call to request transfer
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-11-19 18:30:30 UTC
Size:
1.25 KB
patch
obsolete
>From a3bbfda82700f4a5a0b6f90208ea8565d38d4057 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 19 Nov 2024 18:28:30 +0000 >Subject: [PATCH] Bug 28294: (follow-up) Adjust call to request transfer > >The call expects a library object, not a branchcode, likely rebasing issue > >To test: >1 - Place a hold for an item at a different library than current library >2 - Check item in and confirm transfer >3 - Check item in again >4 - Kaboom! >5 - Apply patch/restart_all >6 - Check item in again >7 - Ok! >--- > circ/returns.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index b064b189ebd..9f2e52dab18 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -586,7 +586,7 @@ if ( $messages->{'WrongTransfer'} and not $messages->{'WasTransfered'}) { > my $item = Koha::Items->find($messages->{'WrongTransferItem'}); > my $old_transfer = $item->get_transfer; > my $new_transfer = $item->request_transfer( >- { to => $old_transfer->tobranch, reason => $old_transfer->reason, replace => 'WrongTransfer' } ); >+ { to => $old_transfer->to_library, reason => $old_transfer->reason, replace => 'WrongTransfer' } ); > $template->param( > NewTransfer => $new_transfer->id > ); >-- >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 28294
:
120637
|
121062
|
121063
|
121064
|
121077
|
121078
|
121079
|
121095
|
121096
|
121097
|
121714
|
121715
|
121716
|
130082
|
130083
|
130084
|
130085
|
130086
|
130087
|
132212
|
132213
|
132214
|
132215
|
132216
|
132217
|
160516
|
160517
|
160518
|
160519
|
160520
|
160521
|
160536
|
160692
|
168281
|
172778
|
172781
|
173856
| 174805