Merge branch 'ent-7555-11820-Filtro-de-eventos-en-widget-Lastest-events' into 'develop'

Ent 7555 11820 filtro de eventos en widget lastest events

See merge request artica/pandorafms!4142
This commit is contained in:
Daniel Rodriguez 2021-06-21 09:10:45 +00:00
commit 95a152752b
1 changed files with 9 additions and 0 deletions

View File

@ -535,6 +535,15 @@ class EventsListWidget extends Widget
$filter['tag_without'] = base64_encode(
json_encode($filter['tag_without'])
);
if (!empty($filter['id_agent_module'])) {
$name = \modules_get_modules_name(
' FROM tagente_modulo',
' WHERE id_agente_modulo = '.$filter['id_agent_module'],
is_metaconsole()
);
$filter['module_search'] = $name[0]['nombre'];
}
} else {
// Filtering.
$filter['event_view_hr'] = $hours;