diff --git a/pandora_console/operation/netflow/nf_live_view.php b/pandora_console/operation/netflow/nf_live_view.php index ceaa2249e6..06dffcaa9f 100644 --- a/pandora_console/operation/netflow/nf_live_view.php +++ b/pandora_console/operation/netflow/nf_live_view.php @@ -85,7 +85,7 @@ if (is_ajax() === true) { // Read filter configuration. $filter_id = (int) get_parameter('filter_id', 0); -$filter['id_name'] = get_parameter('name', ''); +$filter['id_name'] = get_parameter('new_filter_name', ''); $filter['id_group'] = (int) get_parameter('assign_group', 0); $filter['aggregate'] = get_parameter('aggregate', ''); $filter['ip_dst'] = get_parameter('ip_dst', ''); @@ -162,6 +162,10 @@ if ($save != '' && check_acl($config['id_user'], 0, 'AW')) { // Save filter args. $filter['filter_args'] = netflow_get_filter_arguments($filter, true); + if ($filter['id_name'] === '') { + $filter['id_name'] = 'Netflow_Filter_'.time(); + } + $filter_id = db_process_sql_insert('tnetflow_filter', $filter); if ($filter_id === false) { $filter_id = 0; @@ -380,6 +384,9 @@ $advanced_toggle .= '