Merge branch 'ent-11424-bulk-operations-no-funciona-correctamente' into 'develop'

Ent 11424 bulk operations no funciona correctamente

See merge request artica/pandorafms!6013
This commit is contained in:
Rafael Ameijeiras 2023-06-06 11:43:09 +00:00
commit eb2d974670
1 changed files with 11 additions and 0 deletions

View File

@ -524,6 +524,17 @@ function edit_massive_agent(
alerts_validate_alert_agent($id_agent);
}
}
if (empty($values['id_grupo']) === false) {
// Check if group and secondary group match and remove.
$remove_sg = (bool) db_process_sql_delete(
'tagent_secondary_group',
[
'id_agent' => (int) $id_agent,
'id_group' => (int) $values['id_grupo'],
]
);
}
}
$info = [];