Merge branch 'ent-12558-error-SQL-al-copiar-módulo-web-de-tipo-check-server-status-code' into 'develop'

Ent 12558 error sql al copiar módulo web de tipo check server status code

See merge request artica/pandorafms!6717
This commit is contained in:
Rafael Ameijeiras 2023-12-04 08:11:23 +00:00
commit 5e588b1ef1
1 changed files with 5 additions and 0 deletions

View File

@ -251,6 +251,11 @@ function modules_copy_agent_module_to_agent($id_agent_module, $id_destiny_agent,
unset($new_module['id_agente_modulo']);
unset($new_module['id_agente']);
// Set debug content.
if (empty($new_module['debug_content']) === false) {
$new_module['debug_content'] = str_replace("'", '"', $new_module['debug_content']);
}
$id_new_module = modules_create_agent_module(
$id_destiny_agent,
$new_module['nombre'],