Bug 28762: (follow-up) Remove warning in tests

Looks like a recent bug introduced a superflous warning, we just clean
that up here whilst we're in the code.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit e45a595996)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2024-07-22 13:29:06 +01:00 committed by Lucas Gass
parent b550d2773e
commit a38bac4814
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ sub store {
}
# Ensure barcode is either defined or undef
$self->barcode(undef) if $self->barcode eq '';
$self->barcode(undef) if ( defined($self->barcode) && $self->barcode eq '' );
$self->barcode( C4::Circulation::barcodedecode( $self->barcode ) );