Fix: Bad check of idprof2
This commit is contained in:
parent
a829b10190
commit
daaf909c02
@ -2019,7 +2019,7 @@ class Societe extends CommonObject
|
|||||||
// Verifie SIRET si pays FR
|
// Verifie SIRET si pays FR
|
||||||
if ($idprof == 2 && $soc->country_code == 'FR')
|
if ($idprof == 2 && $soc->country_code == 'FR')
|
||||||
{
|
{
|
||||||
$chaine=trim($this->idprof1);
|
$chaine=trim($this->idprof2);
|
||||||
$chaine=preg_replace('/(\s)/','',$chaine);
|
$chaine=preg_replace('/(\s)/','',$chaine);
|
||||||
|
|
||||||
if (dol_strlen($chaine) != 14) return -1;
|
if (dol_strlen($chaine) != 14) return -1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user