Source
461
461
$_REQUEST[$name] = [];
462
462
$subfilters_value = CProfile::get($prefix.'items.'.$name);
463
463
if (!zbx_empty($subfilters_value)) {
464
464
$_REQUEST[$name] = explode(';', $subfilters_value);
465
465
$_REQUEST[$name] = array_combine($_REQUEST[$name], $_REQUEST[$name]);
466
466
}
467
467
}
468
468
}
469
469
470
470
$ms_groups = [];
471
-
$filter_groupids = getSubGroups(getRequest('filter_groupids', []), $ms_groups, ['editable' => true],
472
-
getRequest('context')
473
-
);
471
+
$filter_groupids = getSubGroups(getRequest('filter_groupids', []), $ms_groups, getRequest('context'));
474
472
$filter_hostids = getRequest('filter_hostids');
473
+
475
474
if (!hasRequest('form') && $filter_hostids) {
476
475
if (!isset($host)) {
477
476
$host = API::Host()->get([
478
477
'output' => ['hostid'],
479
478
'hostids' => $filter_hostids
480
479
]);
481
480
if (!$host) {
482
481
$host = API::Template()->get([
483
482
'output' => ['templateid'],
484
483
'templateids' => $filter_hostids