mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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 */);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user