minor fix

This commit is contained in:
fbsanchez 2020-10-27 16:03:35 +01:00
parent 3220217ec8
commit f744261821
2 changed files with 10 additions and 2 deletions

View File

@ -168,7 +168,15 @@ if ($id_group) {
}
} else {
$table->data[2][1] = '<div class="w250px inline">';
$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] .= '</div>';
}

View File

@ -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'];