/trunk/jrest/services/CoelRecherche.php |
---|
240,6 → 240,10 |
$where = str_replace('WHERE AND', 'WHERE', $where); |
// Gestion du from en fonction des paramêtres |
if (isset($p['str-d'])) {// ATTENTION : Remplace $from, doit être situé en première position! |
$from = 'FROM coel_structure '. |
' LEFT JOIN coel_collection ON (cs_id_structure = cc_ce_structure) '; |
} |
if (isset($p['sci'])) { |
$from .= ' LEFT JOIN coel_structure_valorisation ON (cs_id_structure = csv_id_structure) '; |
} |