Update mod_barcode_product_standard.php

get barcode type configuration for products only if $type not set
This commit is contained in:
zuiko 2021-01-09 01:01:14 +01:00 committed by GitHub
parent 73e69f8389
commit bcff65c3d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
$numFinal = get_next_value($db, $mask, 'product', $field, $where, '', $now);
//if EAN13 calculate and substitute the last 13th character (* or ?) used in the mask by the EAN13 key
$type=$conf->global->PRODUIT_DEFAULT_BARCODE_TYPE; //get barcode type configuration for products
if ($type=='') {$type=$conf->global->PRODUIT_DEFAULT_BARCODE_TYPE;} //get barcode type configuration for products if $type not set
if ($type==2) //2 = EAN13
{
if (strlen($numFinal)==13)