diff --git a/htdocs/product/card.php b/htdocs/product/card.php index f036797ed47..93bb3c65d0e 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -307,9 +307,7 @@ if (empty($reshook)) { $object->status = GETPOST('statut'); $object->status_buy = GETPOST('statut_buy'); $object->status_batch = GETPOST('status_batch'); - if ($object->status_batch !== 0) { - $object->batch_mask = GETPOST('batch_mask'); - } else $object->batch_mask = ''; + $object->batch_mask = GETPOST('batch_mask'); $object->barcode_type = GETPOST('fk_barcode_type'); $object->barcode = GETPOST('barcode'); @@ -478,9 +476,7 @@ if (empty($reshook)) { $object->status = GETPOST('statut', 'int'); $object->status_buy = GETPOST('statut_buy', 'int'); $object->status_batch = GETPOST('status_batch', 'aZ09'); - if ($object->status_batch !== 0) { - $object->batch_mask = GETPOST('batch_mask', 'alpha'); - } else $object->batch_mask = ''; + $object->batch_mask = GETPOST('batch_mask', 'alpha'); $object->fk_default_warehouse = GETPOST('fk_default_warehouse'); // removed from update view so GETPOST always empty /* @@ -1108,25 +1104,27 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { print '