Merge branch 'ent-11952-16143-widget-list-of-latest-events-no-aplica-filtrado' into 'develop'

Ent 11952 16143 widget list of latest events no aplica filtrado

See merge request artica/pandorafms!6365
This commit is contained in:
Matias Didier 2023-08-29 11:03:34 +00:00
commit 36d8f3c15a
2 changed files with 16 additions and 8 deletions

View File

@ -394,6 +394,8 @@ class EventsListWidget extends Widget
-1 => \__('All event'), -1 => \__('All event'),
1 => \__('Only validated'), 1 => \__('Only validated'),
0 => \__('Only pending'), 0 => \__('Only pending'),
2 => \__('Only in process'),
3 => \__('Only not validated'),
]; ];
$inputs['inputs']['row1'][] = [ $inputs['inputs']['row1'][] = [
@ -720,14 +722,15 @@ class EventsListWidget extends Widget
'style' => 'width: 99%;', 'style' => 'width: 99%;',
'ajax_url' => 'operation/events/events', 'ajax_url' => 'operation/events/events',
'ajax_data' => [ 'ajax_data' => [
'get_events' => 1, 'get_events' => 1,
'table_id' => $table_id, 'table_id' => $table_id,
'filter' => $filter, 'filter' => $filter,
'length' => $this->values['limit'], 'event_list_widget_filter' => $filter,
'groupRecursion' => (bool) $this->values['groupRecursion'], 'length' => $this->values['limit'],
'auth_hash' => $hash, 'groupRecursion' => (bool) $this->values['groupRecursion'],
'auth_class' => 'PandoraFMS\Dashboard\Manager', 'auth_hash' => $hash,
'id_user' => $id_user, 'auth_class' => 'PandoraFMS\Dashboard\Manager',
'id_user' => $id_user,
], ],
'default_pagination' => $this->values['limit'], 'default_pagination' => $this->values['limit'],
'pagination_options' => [ '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); $settings_modal = get_parameter('settings', 0);
$parameters_modal = get_parameter('parameters', 0); $parameters_modal = get_parameter('parameters', 0);