Fix: bug #14671 overview: echappement simple cote libelle produit
This commit is contained in:
parent
4d87fbc521
commit
a715f4583f
@ -61,14 +61,14 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer)
|
|||||||
{
|
{
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
|
|
||||||
$product->ref = $_POST["ref"];
|
$product->ref = stripslashes($_POST["ref"]);
|
||||||
$product->libelle = $_POST["libelle"];
|
$product->libelle = stripslashes($_POST["libelle"]);
|
||||||
$product->price = $_POST["price"];
|
$product->price = stripslashes($_POST["price"]);
|
||||||
$product->tva_tx = $_POST["tva_tx"];
|
$product->tva_tx = $_POST["tva_tx"];
|
||||||
$product->type = $_POST["type"];
|
$product->type = $_POST["type"];
|
||||||
$product->envente = $_POST["statut"];
|
$product->envente = $_POST["statut"];
|
||||||
$product->description = $_POST["desc"];
|
$product->description = stripslashes($_POST["desc"]);
|
||||||
$product->note = $_POST["note"];
|
$product->note = stripslashes($_POST["note"]);
|
||||||
$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->seuil_stock_alerte = $_POST["seuil_stock_alerte"];
|
$product->seuil_stock_alerte = $_POST["seuil_stock_alerte"];
|
||||||
@ -100,12 +100,12 @@ if ($_POST["action"] == 'update' &&
|
|||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
if ($product->fetch($_POST["id"]))
|
if ($product->fetch($_POST["id"]))
|
||||||
{
|
{
|
||||||
$product->ref = $_POST["ref"];
|
$product->ref = stripslashes($_POST["ref"]);
|
||||||
$product->libelle = $_POST["libelle"];
|
$product->libelle = stripslashes($_POST["libelle"]);
|
||||||
$product->price = $_POST["price"];
|
$product->price = stripslashes($_POST["price"]);
|
||||||
$product->tva_tx = $_POST["tva_tx"];
|
$product->tva_tx = $_POST["tva_tx"];
|
||||||
$product->description = $_POST["desc"];
|
$product->description = stripslashes($_POST["desc"]);
|
||||||
$product->note = $_POST["note"];
|
$product->note = stripslashes($_POST["note"]);
|
||||||
$product->envente = $_POST["statut"];
|
$product->envente = $_POST["statut"];
|
||||||
$product->seuil_stock_alerte = $_POST["seuil_stock_alerte"];
|
$product->seuil_stock_alerte = $_POST["seuil_stock_alerte"];
|
||||||
$product->duration_value = $_POST["duration_value"];
|
$product->duration_value = $_POST["duration_value"];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user