diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 34df9ae725c..03cfbc7f841 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -167,7 +167,7 @@ if (empty($reshook)) if ($result >= 0) { - $result = $object->setValueFrom('barcode', GETPOST('barcode')); + $result = $object->setValueFrom('barcode', GETPOST('barcode'), '', null, 'text', '', $user, 'PRODUCT_MODIFY'); header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id); exit; }