From e45a595996c69a980c47ea68102188ffea76c93f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 22 Jul 2024 13:29:06 +0100 Subject: [PATCH] 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 Signed-off-by: Martin Renvoize --- Koha/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 12283c1bc2..2c9318cc78 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -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 ) ); -- 2.39.5