mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#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…
x
Reference in New Issue
Block a user