/trunk/services/bibliotheque/Sql.php |
---|
288,8 → 288,8 |
private function ajouterContrainteDepartement() { |
if (isset($this->parametres['masque.departement'])) { |
$dept = $this->parametres['masque.departement']; |
$deptMotif = $this->bdd->proteger("INSEE-C:$dept"); |
$this->addWhere('masque.departement', "do.ce_zone_geo LIKE $deptMotif"); |
$deptMotif = $this->bdd->proteger("$dept"); |
$this->addWhere('masque.departement', "substr(do.ce_zone_geo, 1, 2) = $deptMotif"); |
$this->ajouterJoinObsSiNecessaire(); |
} |