Bug 20499: just check if GetItem returns something is enough

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-04-12 12:31:28 -03:00
parent 32b6c50855
commit 4fe8b62f84
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ sub CanBookBeIssued {
my $item = GetItem(undef, $barcode );
# MANDATORY CHECKS - unless item exists, nothing else matters
unless ( $item->{barcode} ) {
unless ( $item ) {
$issuingimpossible{UNKNOWN_BARCODE} = 1;
}
return ( \%issuingimpossible, \%needsconfirmation ) if %issuingimpossible;