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:
parent
32b6c50855
commit
4fe8b62f84
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue