From 5a7e87c2d497d2f98a645a4c7e979df51b24b8cc Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 21 May 2013 15:58:44 -0400 Subject: [PATCH] Bug 10305 - _increment_barcode is called twice For some reason, _increment_barcode is called twice in succession in cataloguing/additem.pl Test Plan: 1) Enable autobarcode = incremental 2) Catalog an item, not the barcode 3) Apply this patch 4) Catalog another item, the barcode should be the next in line as previously. No change should be noted. Signed-off-by: Marcel de Rooy (cherry picked from commit 449fc4e168368cc3b1991152f32a2862b578a04c) Signed-off-by: Tomas Cohen Arazi --- cataloguing/additem.pl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index cd5f9952f1..59c1ca4c31 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -400,11 +400,6 @@ if ($op eq "additem") { $record = _increment_barcode($record, $frameworkcode); } - - if (C4::Context->preference('autoBarcode') eq 'incremental') { - $record = _increment_barcode($record, $frameworkcode); - } - my $addedolditem = TransformMarcToKoha( $dbh, $record ); # If we have to add or add & duplicate, we add the item -- 2.39.5