From: Chris Nighswonger <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
---
serials/serials-edit.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl
index f8e3b4c..1619762 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");
--
1.5.5.GIT
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches