From 64c3ad594787f3235359972f8c4acdf4a6105788 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 6 Apr 2023 10:38:16 -0300 Subject: [PATCH] Bug 30403: (follow-up) Remove useless warning Signed-off-by: Tomas Cohen Arazi --- C4/Circulation.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 48bf78239c..f1851ed283 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2296,7 +2296,8 @@ sub AddReturn { $transfer->receive; $messages->{'TransferArrived'} = $transfer->frombranch; # validTransfer=1 allows us returning the item back if the reserve is cancelled - $validTransfer = 1 if $transfer->reason eq 'Reserve'; + $validTransfer = 1 + if defined $transfer->reason && $transfer->reason eq 'Reserve'; } else { $messages->{'WrongTransfer'} = $transfer->tobranch; -- 2.39.5