View | Details | Raw Unified | Return to bug 28294
Collapse All | Expand All

(-)a/circ/returns.pl (-2 / +9 lines)
Lines 405-411 if ( $messages->{'WrongTransfer'} and not $messages->{'WasTransfered'}) { Link Here
405
    );
405
    );
406
406
407
    # Update the transfer to reflect the new item holdingbranch
407
    # Update the transfer to reflect the new item holdingbranch
408
	my $new_transfer = updateWrongTransfer($messages->{'WrongTransferItem'},$messages->{'WrongTransfer'}, $userenv_branch);
408
    my $transfer = Koha::Items->find($messages->{'WrongTransferItem'})->get_transfer;
409
    my $new_transfer = $transfer->replace(
410
        {
411
            to            => $transfer->to_library,
412
            reason        => 'WrongTransfer',
413
            ignore_limits => 1,
414
            force         => 1
415
        }
416
    );
409
    $template->param(
417
    $template->param(
410
        NewTransfer => $new_transfer->id
418
        NewTransfer => $new_transfer->id
411
    );
419
    );
412
- 

Return to bug 28294