diff --git a/addons/userrights/userrightsprofile.class.inc.php b/addons/userrights/userrightsprofile.class.inc.php index bdb66fc1f..39987001f 100644 --- a/addons/userrights/userrightsprofile.class.inc.php +++ b/addons/userrights/userrightsprofile.class.inc.php @@ -557,6 +557,10 @@ class UserRightsProfile extends UserRightsAddOnAPI { $oContact->Set('org_id', $iOrgId); } + if (MetaModel::IsValidAttCode('Person', 'phone')) + { + $oContact->Set('phone', '+00 000 000 000'); + } $oContact->Set('email', 'my.email@foo.org'); $iContactId = $oContact->DBInsertTrackedNoReload($oChange, true /* skip security */); }