瀏覽代碼

Merge pull request #13218 from nextcloud/backport/13187/stable15

[stable15] do not forgot to store the second displayname portion
blizzz 5 年之前
父節點
當前提交
d1490a96ee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/user_ldap/lib/User/User.php

+ 1 - 1
apps/user_ldap/lib/User/User.php

@@ -202,7 +202,7 @@ class User {
 			$displayName2 = (string)$ldapEntry[$attr][0];
 		}
 		if ($displayName !== '') {
-			$this->composeAndStoreDisplayName($displayName);
+			$this->composeAndStoreDisplayName($displayName, $displayName2);
 			$this->access->cacheUserDisplayName(
 				$this->getUsername(),
 				$displayName,