diff --git a/htdocs/product/canvas/livre/livre-edit.tpl b/htdocs/product/canvas/livre/livre-edit.tpl index e434ca3c48a..1a261c887d1 100644 --- a/htdocs/product/canvas/livre/livre-edit.tpl +++ b/htdocs/product/canvas/livre/livre-edit.tpl @@ -127,8 +127,7 @@ Statut diff --git a/htdocs/product/canvas/product.livre.class.php b/htdocs/product/canvas/product.livre.class.php index 228ddf14873..b6a658e5a32 100644 --- a/htdocs/product/canvas/product.livre.class.php +++ b/htdocs/product/canvas/product.livre.class.php @@ -412,6 +412,11 @@ class ProductLivre extends Product $smarty->assign('prod_stock_in_command', $this->stock_in_command); $smarty->assign('prod_stock_alert', $this->seuil_stock_alerte); + $smarty->assign('prod_statut_id', $this->status); + + $smarty->assign('prod_statuts_id', array(1,0) ); + $smarty->assign('prod_statuts_value', array('En vente', 'Hors vente') ); + if ($this->status==1) { $smarty->assign('prod_statut', 'En vente');