Merge branch 'develop' of https://github.com/Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2013-04-25 13:09:28 +02:00
commit 0a5415ee2a
2 changed files with 3 additions and 3 deletions

View File

@ -185,7 +185,7 @@ if ($modecompta == 'CREANCES-DETTES') {
} }
if ($selected_cat && $selected_cat !== -2) { if ($selected_cat && $selected_cat !== -2) {
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON c.rowid = ".$selected_cat; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON c.rowid = ".$selected_cat;
if (subcat) { if ($subcat) {
$sql.=" OR c.fk_parent = " . $selected_cat; $sql.=" OR c.fk_parent = " . $selected_cat;
} }
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie_societe as cs ON cs.fk_categorie = c.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie_societe as cs ON cs.fk_categorie = c.rowid";