From f537f303def274f892dfa8656eb7582d4794ad8f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 3 Jan 2007 17:07:30 +0000 Subject: [PATCH] Gestion status --- htdocs/product/canvas/livre/livre-edit.tpl | 3 +-- htdocs/product/canvas/product.livre.class.php | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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');