소스 검색

Patch for supporting a data model without any Person.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1019 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 년 전
부모
커밋
4c371e2ad4
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      addons/userrights/userrightsprofile.class.inc.php

+ 4 - 1
addons/userrights/userrightsprofile.class.inc.php

@@ -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