From ea5bb26ee19f29fdb8103df8063c9455f7cc0f5c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Oct 2020 12:03:48 +0200 Subject: [PATCH] Bug 24598: Remove warning from test t/db_dependent/Koha/Items.t .. 6/12 Use of uninitialized value in string eq at /kohadevbox/koha/C4/Circulation.pm line 1460. Signed-off-by: Jonathan Druart --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index aa917a9e2d..2f91511dbd 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1457,7 +1457,7 @@ sub AddIssue { comments => 'Forced branchtransfer' } )->store; - if ( $transfer->reason eq 'Reserve' ) { + if ( $transfer->reason && $transfer->reason eq 'Reserve' ) { my $hold = $item_object->holds->search( { found => 'T' } )->next; if ( $hold ) { # Is this really needed? $hold->set( { found => undef } )->store; -- 2.39.5