11952-Fix filters in List of latest events

This commit is contained in:
Pablo Aragon 2023-08-28 12:27:45 +02:00
parent 85c2cc507f
commit cd430f9f3f
2 changed files with 14 additions and 8 deletions

View File

@ -720,14 +720,15 @@ class EventsListWidget extends Widget
'style' => 'width: 99%;',
'ajax_url' => 'operation/events/events',
'ajax_data' => [
'get_events' => 1,
'table_id' => $table_id,
'filter' => $filter,
'length' => $this->values['limit'],
'groupRecursion' => (bool) $this->values['groupRecursion'],
'auth_hash' => $hash,
'auth_class' => 'PandoraFMS\Dashboard\Manager',
'id_user' => $id_user,
'get_events' => 1,
'table_id' => $table_id,
'filter' => $filter,
'event_list_widget_filter' => $filter,
'length' => $this->values['limit'],
'groupRecursion' => (bool) $this->values['groupRecursion'],
'auth_hash' => $hash,
'auth_class' => 'PandoraFMS\Dashboard\Manager',
'id_user' => $id_user,
],
'default_pagination' => $this->values['limit'],
'pagination_options' => [

View File

@ -104,6 +104,11 @@ if (isset($fb64) === true) {
);
}
$event_list_widget_filter = get_parameter('event_list_widget_filter', null);
if (isset($event_list_widget_filter) === true) {
$filter = $event_list_widget_filter;
}
$settings_modal = get_parameter('settings', 0);
$parameters_modal = get_parameter('parameters', 0);