diff --git a/htdocs/product/card.php b/htdocs/product/card.php index e6b3adb7439..79857364158 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -309,8 +309,7 @@ if (empty($reshook)) { $object->status_batch = GETPOST('status_batch'); if ($object->status_batch !== 0) { $object->batch_mask = GETPOST('batch_mask'); - } - else $object->batch_mask = ''; + } else $object->batch_mask = ''; $object->barcode_type = GETPOST('fk_barcode_type'); $object->barcode = GETPOST('barcode'); @@ -481,8 +480,7 @@ if (empty($reshook)) { $object->status_batch = GETPOST('status_batch', 'aZ09'); if ($object->status_batch !== 0) { $object->batch_mask = GETPOST('batch_mask', 'alpha'); - } - else $object->batch_mask = ''; + } else $object->batch_mask = ''; $object->fk_default_warehouse = GETPOST('fk_default_warehouse'); // removed from update view so GETPOST always empty /* @@ -1132,7 +1130,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { } print ''; - } $showbarcode = empty($conf->barcode->enabled) ? 0 : 1; @@ -1609,11 +1606,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { $mask = !is_empty($object->batch_mask) ? $object->batch_mask : $conf->global->SN_ADVANCED_MASK; } $inherited_mask_lot = $conf->global->LOT_ADVANCED_MASK; - $inherited_mask_sn = $conf->global->SN_ADVANCED_MASK; + $inherited_mask_sn = $conf->global->SN_ADVANCED_MASK; print '