diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 0b71179b47591..a6cb43e55e28e 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -100,7 +100,7 @@ if ($action == 'setbarcodetype' && $user->rights->barcode->creer) { $object->fetch($id); - $result = $object->setValueFrom('fk_barcode_type', $_POST['barcodetype_id']); + $result = $object->setValueFrom('fk_barcode_type', $_POST['fk_barcode_type']); Header("Location: ".$_SERVER['PHP_SELF']."?id=".$id); exit; } @@ -118,7 +118,7 @@ if ($action == 'setaccountancy_code_buy') { $object->fetch($id,$ref); - $result = $object->setValueFrom('accountancy_code_buy', $_POST['productaccountancycodebuy']); + $result = $object->setValueFrom('accountancy_code_buy', $_POST['accountancy_code_buy']); if ($result < 0) { $mesg=join(',',$product->errors); @@ -131,7 +131,7 @@ $object->fetch($id,$ref); $product->accountancy_code_sell=$_POST["productaccountancycodesell"]; $result=$product->update($product->id,$user,1,0,1); - $result = $object->setValueFrom('accountancy_code_sell', $_POST['productaccountancycodesell']); + $result = $object->setValueFrom('accountancy_code_sell', $_POST['accountancy_code_sell']); if ($result < 0) { $mesg=join(',',$product->errors);