#1270 deleche children modules on checked
This commit is contained in:
parent
618c07bf40
commit
f62116bf92
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue