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 <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-10-08 12:03:48 +02:00
parent a20d3a01c7
commit ea5bb26ee1
1 changed files with 1 additions and 1 deletions

View File

@ -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;