Initializes the admin contact's phone number, in case it is a mandatory field in the data model...

SVN:trunk[1622]
This commit is contained in:
Denis Flaven
2011-09-30 08:01:17 +00:00
parent 73968a5631
commit d252d767b6

View File

@@ -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 */);
}