forked from extern/egroupware
disable omitting of unchanged fields for non SQL account backends
as existing backend code then tries to remove the value, which fails with an error from LDAP server, as eg. last name is required
This commit is contained in:
parent
03aead70e8
commit
fd519b3c39
@ -183,6 +183,8 @@ class admin_account
|
||||
|
||||
// only record real changes
|
||||
if (isset($content['old_account']) &&
|
||||
// currently LDAP (and probably also AD and UCS) can not skip unchanged fields!
|
||||
get_class($GLOBALS['egw']->accounts->backend) === 'EGroupware\\Api\\Accounts\\Sql' &&
|
||||
(!isset($content[$c_name]) && $c_name !== 'account_expires' || // account_expires is not set when empty!
|
||||
$content['old_account'][$a_name] == $content[$c_name]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user