From a4863ffa8976fe974c04e7fbd58c232f7b7f329d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 4 Mar 2012 18:38:28 +0100 Subject: [PATCH] Fix: missing compatibility --- htdocs/product/fiche.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index a6cb43e55e2..f6ce3c148b4 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -97,7 +97,7 @@ if (empty($reshook)) } // Barcode type - if ($action == 'setbarcodetype' && $user->rights->barcode->creer) + if ($action == 'setfk_barcode_type' && $user->rights->barcode->creer) { $object->fetch($id); $result = $object->setValueFrom('fk_barcode_type', $_POST['fk_barcode_type']); @@ -129,8 +129,6 @@ if (empty($reshook)) if ($action == 'setaccountancy_code_buy') { $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['accountancy_code_sell']); if ($result < 0) {