#1270 deleche children modules on checked

This commit is contained in:
Jonathan 2022-12-21 08:44:11 +01:00
parent 618c07bf40
commit f62116bf92
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ if ($module_action === 'delete') {
$print_result_msg = true; $print_result_msg = true;
$count_correct_delete_modules = 0; $count_correct_delete_modules = 0;
foreach ($id_agent_modules_delete as $id_agent_module_del) { foreach ($id_agent_modules_delete as $id_agent_module_del) {
// Before delete the main module, check and delete the childrens from the original module.
module_check_childrens_and_delete($id_agent_module_del);
$id_grupo = (int) agents_get_agent_group($id_agente); $id_grupo = (int) agents_get_agent_group($id_agente);
$all_groups = agents_get_all_groups_agent($id_agente, $id_grupo); $all_groups = agents_get_all_groups_agent($id_agente, $id_grupo);