Merge branch 'ent-11750-15965-conflictos-en-la-insercion-de-datos-mediante-la-api' into 'develop'
Ent 11750 15965 conflictos en la insercion de datos mediante la api See merge request artica/pandorafms!6389
This commit is contained in:
commit
f5a455aa15
|
@ -10301,8 +10301,7 @@ function api_set_module_data($id, $thrash2, $other, $trash1)
|
|||
modules_get_type_name($agentModule['id_tipo_modulo']),
|
||||
$data
|
||||
);
|
||||
|
||||
if (false === @file_put_contents($config['remote_config'].'/'.io_safe_output($agent['nombre']).'.'.$time.'.data', $xml)) {
|
||||
if (false === @file_put_contents($config['remote_config'].'/'.io_safe_output($agent['nombre']).'.'.$idAgentModule.'.'.$time.'.data', $xml)) {
|
||||
returnError(sprintf('XML file could not be generated in path: %s', $config['remote_config']));
|
||||
} else {
|
||||
echo __('XML file was generated successfully in path: ').$config['remote_config'];
|
||||
|
|
Loading…
Reference in New Issue