Patch for supporting a data model without any Person.

SVN:trunk[1019]
This commit is contained in:
Denis Flaven
2010-12-07 15:24:16 +00:00
parent 235203b3a0
commit 6a72ceb685

View File

@@ -465,7 +465,10 @@ class UserRightsProfile extends UserRightsAddOnAPI
$oUser = new UserLocal();
$oUser->Set('login', $sAdminUser);
$oUser->Set('password', $sAdminPwd);
$oUser->Set('contactid', $iContactId);
if (MetaModel::IsValidAttCode('UserLocal', 'contactid'))
{
$oUser->Set('contactid', $iContactId);
}
$oUser->Set('language', $sLanguage); // Language was chosen during the installation
// Add this user to the very specific 'admin' profile