#11480 fixed widget status group
This commit is contained in:
parent
305f9a9d5c
commit
50dca5f8e6
|
@ -395,7 +395,9 @@ class SystemGroupStatusWidget extends Widget
|
|||
$user_groups = users_get_groups(false, 'AR', $return_all_group);
|
||||
|
||||
$selected_groups = explode(',', $this->values['groupId'][0]);
|
||||
$all_group_selected = false;
|
||||
if (in_array(0, $selected_groups) === true) {
|
||||
$all_group_selected = true;
|
||||
$selected_groups = [];
|
||||
foreach (groups_get_all() as $key => $name_group) {
|
||||
$selected_groups[] = groups_get_id($name_group);
|
||||
|
@ -480,7 +482,12 @@ class SystemGroupStatusWidget extends Widget
|
|||
}
|
||||
}
|
||||
|
||||
$this->values['groupId'] = $selected_groups;
|
||||
if ($all_group_selected === true) {
|
||||
$this->values['groupId'] = array_keys($result_groups);
|
||||
} else {
|
||||
$this->values['groupId'] = $selected_groups;
|
||||
}
|
||||
|
||||
$this->values['status'] = explode(',', $this->values['status'][0]);
|
||||
|
||||
$style = 'font-size: 1.5em; font-weight: bolder;text-align: center;';
|
||||
|
|
Loading…
Reference in New Issue