From b08f966da036df88028b45cb38a5b2164e1272de Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 21 Mar 2006 15:33:45 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20enlever=20le=20filtre=20cat=E9gorie=20si?= =?UTF-8?q?=20le=20module=20n'est=20pas=20actif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/sousproduits/fiche.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/htdocs/product/sousproduits/fiche.php b/htdocs/product/sousproduits/fiche.php index 54202fc11c0..34ed71bf5fc 100644 --- a/htdocs/product/sousproduits/fiche.php +++ b/htdocs/product/sousproduits/fiche.php @@ -122,21 +122,10 @@ if($action == 'search' ) if($catMere != -1) { $sql .= " AND p.rowid=cp.fk_product AND cp.fk_categorie ='".$catMere."'"; - } $sql .= " ORDER BY p.ref ASC "; // $sql .= $db->plimit($limit + 1 ,$offset); $resql = $db->query($sql) ; - - - - - - - - - - } if ($cancel == $langs->trans("Cancel")) @@ -365,8 +354,12 @@ if ($id || $ref) print ''; print ''; print ''.$langs->trans("CategoryFilter"); - // if(MAIN_MODULE_CATEGORIE) - print ''.$html->select_all_categories($catMere).''; + + if(MAIN_MODULE_CATEGORIE) + { + print ''.$html->select_all_categories($catMere).''; + } + print ''; print ''; print '
';