diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-04-11 09:49:21 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-04-11 10:03:38 +0200 |
commit | 36618b111fde55ba5c8ddedc294e58927257d107 (patch) | |
tree | dce4f7b9ba7dfdf013e18045ca25253d82ae3975 /apps/user_ldap/lib | |
parent | aac22ba40fa9bed24f6e78386de4ae846660d340 (diff) | |
download | nextcloud-server-36618b111fde55ba5c8ddedc294e58927257d107.tar.gz nextcloud-server-36618b111fde55ba5c8ddedc294e58927257d107.zip |
Pass old value to user triggerChange hook
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/User/User.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index d68d8b35d14..5c89950e080 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -436,7 +436,7 @@ class User { if (!empty($oldName) && $user instanceof \OC\User\User) { // if it was empty, it would be a new record, not a change emitting the trigger could // potentially cause a UniqueConstraintViolationException, depending on some factors. - $user->triggerChange('displayName', $displayName); + $user->triggerChange('displayName', $displayName, $oldName); } } return $displayName; |