| | |
| | | |
| | | //* 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 |
| | | $sql = $app->remoting_lib->getSQL($params, 'UPDATE', $primary_id); |
| | | |
| | | // throw new SoapFault('debug', $sql); |
| | | if($app->remoting_lib->errorMessage != '') { |
| | | throw new SoapFault('data_processing_error', $app->remoting_lib->errorMessage); |