From: Chris Nighswonger Date: Tue, 22 Jul 2008 18:43:33 +0000 (-0500) Subject: kohabug 2150 Correcting (somewhat) the inconsistent use of autoBarcode syspref X-Git-Tag: ffzg~79 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=40f09c8166cd086f3aa51a7d59750c5243ba4fb4;p=koha.git 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 --- 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");