diff --git a/library/Metier/insee/classMInsee.php b/library/Metier/insee/classMInsee.php index 0cb74749..858d902c 100644 --- a/library/Metier/insee/classMInsee.php +++ b/library/Metier/insee/classMInsee.php @@ -4741,7 +4741,7 @@ class MInsee $idAnnonce = abs($idAnnonce); $sqlHistoWhere = "e.ANBASE=$idAnnonce "; $sqlHistoWhere.= " AND e.ANBASE=x.annonceNum AND e.DATE BETWEEN 19890101 AND 20041231"; - $sqlHistoWhere.= " AND e.E1GSIR=e.SIREN"; + /*$sqlHistoWhere.= " AND e.E1GSIR=e.SIREN";*/ $sqlHistoWhere.= " GROUP BY e.ANBASE ORDER BY e.DATE DESC"; $sql = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere; } @@ -4768,7 +4768,7 @@ class MInsee $sqlHistoWhere = "e.E1GSIR=$siren"; $sqlHistoWhere.= $this->getAnnoncesLegalesRubrique('histo', $rubrique); $sqlHistoWhere.= " AND e.ANBASE=x.annonceNum AND e.DATE BETWEEN 19890101 AND 20041231"; - $sqlHistoWhere.= " AND e.E1GSIR=e.SIREN"; + /*$sqlHistoWhere.= " AND e.E1GSIR=e.SIREN";*/ $sqlHistoWhere.= " GROUP BY e.ANBASE ORDER BY e.DATE DESC"; $sqlHisto = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere;