Fixed missing code

This commit is contained in:
Jose Gonzalez 2022-01-07 12:22:15 +01:00
parent 8cdf1acd42
commit 4f52e1192c
1 changed files with 6 additions and 0 deletions

View File

@ -648,6 +648,10 @@ class AgentModuleWidget extends Widget
if (is_array($target_modules) === true
|| is_numeric($target_modules) === true
) {
if (is_array($target_modules) === true) {
$target_modules = array_keys($target_modules);
}
$all_modules = Module::search(
['id_agente_modulo' => $target_modules]
);
@ -676,6 +680,8 @@ class AgentModuleWidget extends Widget
) {
$carry[$item] = null;
}
$carry[] = $item;
}
return $carry;