diff --git a/htdocs/product/price.php b/htdocs/product/price.php index b0bb74a7990..f6fbdf30192 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -42,11 +42,9 @@ $user->getrights('produit'); if (!$user->rights->produit->lire) accessforbidden(); - $types[0] = $langs->trans("Product"); $types[1] = $langs->trans("Service"); - /* * Actions */ @@ -58,7 +56,7 @@ if ($_POST["action"] == 'update_price' && $result = $product->fetch($_GET["id"]); - $product->price = ereg_replace(" ","",$_POST["price"]); + $product->SetSellprice($_POST["price"]); $product->price_base_type = $_POST["price_base_type"]; // MultiPrix if($conf->global->PRODUIT_MULTIPRICES == 1)