From 40f09c8166cd086f3aa51a7d59750c5243ba4fb4 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Tue, 22 Jul 2008 13:43:33 -0500 Subject: [PATCH] kohabug 2150 Correcting (somewhat) the inconsistent use of autoBarcode syspref This patch corrects somewhat the inconsistent use of the autoBarcode syspref in serials-edit.pl It does not impliment all the possibilities currently available in the autoBarcode syspref as there is currently no support for the js plug-in/drop-in feature in serials-edit.pl. So in this sense, the autoBarcode syspref is still used inconsistantly here. The fix for this is recommended for rel_3_2 Signed-off-by: Galen Charlton Signed-off-by: Joshua Ferraro --- serials/serials-edit.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index f8e3b4cd7c..16197629e9 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -227,7 +227,7 @@ if ($op eq 'serialchangestatus') { # if autoBarcode is ON, calculate barcode... my ($tagfield,$tagsubfield) = &GetMarcFromKohaField("items.barcode"); - if (C4::Context->preference("autoBarcode") ne 'OFF' ) { + if (C4::Context->preference("autoBarcode") eq 'incremental' ) { eval { $record->field($tagfield)->subfield($tagsubfield) }; if ($@) { my $sth_barcode = $dbh->prepare("select max(abs(barcode)) from items"); -- 2.20.1