From cdfd7e0e8b2b94ff31a7523f773c82f9517b81fd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 15 Dec 2006 14:58:52 +0000 Subject: [PATCH] Modif assign_values --- htdocs/product/canvas/product.livre.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/htdocs/product/canvas/product.livre.class.php b/htdocs/product/canvas/product.livre.class.php index be4015e65dd..e14f72ff54e 100644 --- a/htdocs/product/canvas/product.livre.class.php +++ b/htdocs/product/canvas/product.livre.class.php @@ -340,6 +340,18 @@ class ProductLivre extends Product */ function assign_values(&$smarty) { + if ($this->errno == 257) + { + $smarty->assign('class_normal_ref', 'error'); + $smarty->assign('class_focus_ref', 'focuserr'); + } + else + { + $smarty->assign('class_normal_ref', 'normal'); + $smarty->assign('class_focus_ref', 'focus'); + } + + $smarty->assign('prod_id', $this->id); $smarty->assign('prod_ref', $this->ref); $smarty->assign('prod_label', $this->libelle);