mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-10384-operaciones-masivas-borrado-de-modulos' into 'develop'
Ent 10384 operaciones masivas borrado de modulos See merge request artica/pandorafms!5534
This commit is contained in:
commit
afad252a5c
@ -519,12 +519,13 @@ function modules_delete_agent_module($id_agent_module)
|
||||
'disabled' => 1,
|
||||
'delete_pending' => 1,
|
||||
];
|
||||
$result = db_process_sql_update(
|
||||
$id_agent = db_process_sql_update(
|
||||
'tagente_modulo',
|
||||
$values,
|
||||
['id_agente_modulo' => $id_borrar_modulo]
|
||||
);
|
||||
if ($result === false) {
|
||||
|
||||
if ($id_agent === false) {
|
||||
$error++;
|
||||
} else {
|
||||
// Set flag to update module status count.
|
||||
@ -562,7 +563,7 @@ function modules_delete_agent_module($id_agent_module)
|
||||
$result = db_process_delete_temp(
|
||||
'ttag_module',
|
||||
'id_agente_modulo',
|
||||
$id_borrar_modulo
|
||||
$id_agent
|
||||
);
|
||||
if ($result === false) {
|
||||
$error++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user