Merge pull request #18664 from Fyroeo/develop

CLOSE|Close #18663 Make "L'Annuaire des Entreprises" the default provider for SIREN verification.
This commit is contained in:
Laurent Destailleur 2021-09-09 18:58:11 +02:00 committed by GitHub
commit fba9567003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3709,7 +3709,7 @@ class Societe extends CommonObject
// TODO Move links to validate professional ID into a dictionary table "country" + "link"
$strippedIdProf1 = str_replace(' ', '', $thirdparty->idprof1);
if ($idprof == 1 && $thirdparty->country_code == 'FR') {
$url = 'http://www.societe.com/cgi-bin/search?champs='.$strippedIdProf1; // See also http://avis-situation-sirene.insee.fr/
$url = 'https://annuaire-entreprises.data.gouv.fr/entreprise/'.$strippedIdProf1; // See also http://avis-situation-sirene.insee.fr/
}
if ($idprof == 1 && ($thirdparty->country_code == 'GB' || $thirdparty->country_code == 'UK')) {
$url = 'https://beta.companieshouse.gov.uk/company/'.$strippedIdProf1;