From 82730aa521908870d61fa2f5bf96ad493dd0ef05 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 20 Jul 2021 11:45:25 +0200 Subject: [PATCH] Bug 27526: Fix incorrect condition The barcode was always prefilled! --- cataloguing/additem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index d7a3307806f..57f2a5a2f44 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -456,7 +456,7 @@ if ($op eq "additem") { } # if autoBarcode is set to 'incremental', calculate barcode... - if ( not $item->barcode && C4::Context->preference('autoBarcode') eq 'incremental' ) { + if ( !$item->barcode && C4::Context->preference('autoBarcode') eq 'incremental' ) { my ( $barcode ) = C4::Barcodes::ValueBuilder::incremental::get_barcode; $item->barcode($barcode); } -- 2.20.1