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 '
';