diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-04-11 10:49:21 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-04-11 11:03:38 +0300 |
commit | 36618b111fde55ba5c8ddedc294e58927257d107 (patch) | |
tree | dce4f7b9ba7dfdf013e18045ca25253d82ae3975 /apps/user_ldap/lib | |
parent | aac22ba40fa9bed24f6e78386de4ae846660d340 (diff) |
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; |