Browse Source

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

[stable15] do not forgot to store the second displayname portion
blizzz 5 years ago
parent
commit
d1490a96ee
1 changed files with 1 additions and 1 deletions
  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,