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:
Ralf Becker 2019-01-30 17:22:12 +01:00
parent 03aead70e8
commit fd519b3c39

View File

@ -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]))
{