Skip to content
Snippets Groups Projects
Commit 37b29231 authored by Marius Cramer's avatar Marius Cramer
Browse files

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

parent 92edaf22
No related branches found
No related tags found
No related merge requests found
......@@ -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])) {
unset($old_rec[$fieldName]);
}
}
$params = $app->functions->array_merge($old_rec,$params);
//* Get the SQL query
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment