diff --git a/pandora_console/godmode/groups/configure_group.php b/pandora_console/godmode/groups/configure_group.php index 72fe425fca..7d74fe56d0 100644 --- a/pandora_console/godmode/groups/configure_group.php +++ b/pandora_console/godmode/groups/configure_group.php @@ -168,7 +168,15 @@ if ($id_group) { } } else { $table->data[2][1] = '
'; - $table->data[2][1] .= html_print_select_groups(false, 'AR', true, 'id_parent', $id_parent, '', '', '', true); + $table->data[2][1] .= html_print_input( + [ + 'type' => 'select_groups', + 'name' => 'id_parent', + 'selected' => $id_parent, + 'return' => true, + 'returnAllGroup' => true, + ] + ); $table->data[2][1] .= '
'; } diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 0bdf773977..e029ebda2e 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -500,7 +500,7 @@ function html_print_select_groups( $name = 'group_select'.$idcounter[$name]; } - if ($id_group !== null) { + if ($id_group !== false) { $children = groups_get_children($id_group); foreach ($children as $child) { $delete_groups[] = $child['id_grupo'];