Adresse RNVP : Récupération correcte du companyId

This commit is contained in:
Michael RICOIS 2016-03-15 15:17:59 +00:00
parent 4d4aa64e8d
commit 2cf4565057

View File

@ -1287,7 +1287,7 @@ function AdresseNormaliseData($siren, $nic, $values = false)
try {
$etabM = new Application_Model_JoEtablissements();
$sql = $etabM->select(true)->columns(array('LPAD(source,3,0)', 'LPAD(source_id,20,0)'))
$sql = $etabM->select(true)->columns(array('LPAD(source,3,0) AS source', 'LPAD(source_id,20,0) AS sourceId'))
->where('siren=?', $siren)
->where('nic=?', $nic);
$etabResult = $etabM->fetchRow($sql);