@@ -, +, @@ --- circ/returns.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/circ/returns.pl +++ a/circ/returns.pl @@ -405,7 +405,15 @@ if ( $messages->{'WrongTransfer'} and not $messages->{'WasTransfered'}) { ); # Update the transfer to reflect the new item holdingbranch - my $new_transfer = updateWrongTransfer($messages->{'WrongTransferItem'},$messages->{'WrongTransfer'}, $userenv_branch); + my $transfer = Koha::Items->find($messages->{'WrongTransferItem'})->get_transfer; + my $new_transfer = $transfer->replace( + { + to => $transfer->to_library, + reason => 'WrongTransfer', + ignore_limits => 1, + force => 1 + } + ); $template->param( NewTransfer => $new_transfer->id ); --