se cambia el valor del modulo y marca en el filtro usado

This commit is contained in:
marcos 2020-10-29 12:30:54 +01:00
parent edc9038783
commit cf108c0a17
2 changed files with 5 additions and 6 deletions

View File

@ -356,7 +356,7 @@ if ($get_filter_values) {
'filter_id' => 0, 'filter_id' => 0,
]; ];
} else { } else {
$event_filter['module_search'] = io_safe_output(db_get_value_filter('nombre', 'tagente_modulo', ['id_agente_modulo' => 9])); $event_filter['module_search'] = io_safe_output(db_get_value_filter('nombre', 'tagente_modulo', ['id_agente_modulo' => $event_filter['id_agent_module']]));
$a = array_keys(users_get_groups(false)); $a = array_keys(users_get_groups(false));
$event_filter['group_name'] = ''; $event_filter['group_name'] = '';
foreach ($a as $key => $value) { foreach ($a as $key => $value) {
@ -365,7 +365,7 @@ if ($get_filter_values) {
} }
} }
$event_filter['module_search'] = io_safe_output(db_get_value_filter('nombre', 'tagente_modulo', ['id_agente_modulo' => 9])); $event_filter['module_search'] = io_safe_output(db_get_value_filter('nombre', 'tagente_modulo', ['id_agente_modulo' => $event_filter['id_agent_module']]));
} }
$event_filter['search'] = io_safe_output($event_filter['search']); $event_filter['search'] = io_safe_output($event_filter['search']);
@ -385,7 +385,7 @@ if ($get_filter_values) {
} }
if ($load_filter_modal) { if ($load_filter_modal) {
$current = get_parameter('current_filter', ''); $current = db_get_value_filter('default_event_filter', 'tusuario', ['id_user' => $config['id_user']]);
$filters = events_get_event_filter_select(); $filters = events_get_event_filter_select();
$user_groups_array = users_get_groups_for_select( $user_groups_array = users_get_groups_for_select(
$config['id_user'], $config['id_user'],

View File

@ -2328,9 +2328,8 @@ $(document).ready( function() {
url: '<?php echo ui_get_full_url('ajax.php'); ?>', url: '<?php echo ui_get_full_url('ajax.php'); ?>',
data: { data: {
page: 'include/ajax/events', page: 'include/ajax/events',
load_filter_modal: 1, load_filter_modal: 1
current_filter: $('#latest_filter_id').val() },
},
success: function (data){ success: function (data){
$('#load-modal-filter') $('#load-modal-filter')
.empty() .empty()