fixed multi selector pandora_enterprise#8620

This commit is contained in:
Daniel Barbero 2022-10-18 13:40:09 +02:00
parent 40dc913aca
commit 1acb67ecad
2 changed files with 8 additions and 4 deletions

View File

@ -710,9 +710,13 @@ class AgentModuleWidget extends Widget
if (empty($allModules) === false) {
if (is_metaconsole() === true && $this->values['mShowCommonModules'] !== 'on') {
$modules = $agent->searchModules(
['nombre' => array_keys($reduceAllModules['modules_selected'][$tserver])]
);
if (isset($reduceAllModules['modules_selected'][$tserver]) === true) {
$modules = $agent->searchModules(
['nombre' => array_keys($reduceAllModules['modules_selected'][$tserver])]
);
} else {
$modules = null;
}
} else {
$modules = $agent->searchModules(
['nombre' => array_keys($allModules)]

View File

@ -223,7 +223,7 @@ if (is_ajax()) {
$id_agents,
$selection,
$select_mode,
true
(bool) !$select_mode
);
// Clean double safe input.