mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Initializes the admin contact's phone number, in case it is a mandatory field in the data model...
SVN:1.2[1623]
This commit is contained in:
@@ -557,6 +557,10 @@ class UserRightsProfile extends UserRightsAddOnAPI
|
|||||||
{
|
{
|
||||||
$oContact->Set('org_id', $iOrgId);
|
$oContact->Set('org_id', $iOrgId);
|
||||||
}
|
}
|
||||||
|
if (MetaModel::IsValidAttCode('Person', 'phone'))
|
||||||
|
{
|
||||||
|
$oContact->Set('phone', '+00 000 000 000');
|
||||||
|
}
|
||||||
$oContact->Set('email', 'my.email@foo.org');
|
$oContact->Set('email', 'my.email@foo.org');
|
||||||
$iContactId = $oContact->DBInsertTrackedNoReload($oChange, true /* skip security */);
|
$iContactId = $oContact->DBInsertTrackedNoReload($oChange, true /* skip security */);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user