diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index f667a1d3bad59dbb82966fc0cf8ea33471f3e397..12aa8d09dc96a781726085d16cd39579c835315d 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2019,7 +2019,7 @@ class Societe extends CommonObject // Verifie SIRET si pays FR if ($idprof == 2 && $soc->country_code == 'FR') { - $chaine=trim($this->idprof1); + $chaine=trim($this->idprof2); $chaine=preg_replace('/(\s)/','',$chaine); if (dol_strlen($chaine) != 14) return -1;