Bugfix sur stock_loc

This commit is contained in:
Rodolphe Quiedeville 2006-12-09 15:58:59 +00:00
parent bf5804aa10
commit d9e6da6781

View File

@ -102,14 +102,9 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer)
if ( $value != $current_lang ) $e_product = $product; if ( $value != $current_lang ) $e_product = $product;
// Produit spécifique // Produit spécifique
if ($product->canvas <> '' && file_exists('canvas/product.'.$product->canvas.'.class.php') ) // $_POST n'est pas utilise dans la classe Product
{ // mais dans des classes qui hérite de Product
$id = $product->CreateCanvas($user, $_POST); $id = $product->Create($user, $_POST);
}
else
{
$id = $product->create($user);
}
if ($id > 0) if ($id > 0)
{ {
@ -141,6 +136,7 @@ if ($_POST["action"] == 'update' &&
$product->note = $_POST["note"]; $product->note = $_POST["note"];
$product->status = $_POST["statut"]; $product->status = $_POST["statut"];
$product->seuil_stock_alerte = $_POST["seuil_stock_alerte"]; $product->seuil_stock_alerte = $_POST["seuil_stock_alerte"];
$product->stock_loc = $_POST["stock_loc"];
$product->duration_value = $_POST["duration_value"]; $product->duration_value = $_POST["duration_value"];
$product->duration_unit = $_POST["duration_unit"]; $product->duration_unit = $_POST["duration_unit"];
$product->canvas = $_POST["canvas"]; $product->canvas = $_POST["canvas"];