#11195 fixed widget groups when select all
This commit is contained in:
parent
b4d1054b4f
commit
fb8a54c42e
|
@ -395,6 +395,12 @@ class SystemGroupStatusWidget extends Widget
|
||||||
$user_groups = users_get_groups(false, 'AR', $return_all_group);
|
$user_groups = users_get_groups(false, 'AR', $return_all_group);
|
||||||
|
|
||||||
$selected_groups = explode(',', $this->values['groupId'][0]);
|
$selected_groups = explode(',', $this->values['groupId'][0]);
|
||||||
|
if (in_array(0, $selected_groups) === true) {
|
||||||
|
$selected_groups = [];
|
||||||
|
foreach (groups_get_all() as $key => $name_group) {
|
||||||
|
$selected_groups[] = groups_get_id($name_group);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Recursion.
|
// Recursion.
|
||||||
if ($this->values['groupRecursion'] === true) {
|
if ($this->values['groupRecursion'] === true) {
|
||||||
|
|
Loading…
Reference in New Issue