Commit 37b29231 authored by Marius Cramer's avatar Marius Cramer
Browse files

- don't set password via remoting if field is empty

parent 92edaf22
......@@ -336,6 +336,14 @@ class remoting {
//* get old record and merge with params, so only new values have to be set in $params
$old_rec = $app->remoting_lib->getDataRecord($primary_id);
foreach ($app->remoting_lib->formDef['fields'] as $fieldName => $fieldConf)
if ($fieldConf['formtype'] === 'PASSWORD' && empty($params[$fieldName])) {
$params = $app->functions->array_merge($old_rec,$params);
//* Get the SQL query
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment