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:
parent
a20d3a01c7
commit
ea5bb26ee1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue