Adresse RNVP : Récupération correcte du companyId
This commit is contained in:
parent
4d4aa64e8d
commit
2cf4565057
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user