diff --git a/pandora_console/extras/mr/63.sql b/pandora_console/extras/mr/63.sql index a32c93ac05..9aca7c604c 100644 --- a/pandora_console/extras/mr/63.sql +++ b/pandora_console/extras/mr/63.sql @@ -14,6 +14,30 @@ CREATE TABLE IF NOT EXISTS `tsesion_filter` ( PRIMARY KEY (`id_filter`) ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; +CREATE TABLE IF NOT EXISTS `tsesion_filter_log_viewer` ( + `id_filter` INT NOT NULL AUTO_INCREMENT, + `id_name` TEXT NULL, + `id_group_filter` TEXT NULL, + `id_search_mode` INT NULL, + `order` VARCHAR(45) NULL, + `search` VARCHAR(255) NULL, + `group_id` INT NULL, + `date_range` TINYINT NULL, + `start_date_defined` VARCHAR(45) NULL, + `start_date_time` VARCHAR(45) NULL, + `start_date_date` VARCHAR(45) NULL, + `start_date_date_range` VARCHAR(45) NULL, + `start_date_time_range` VARCHAR(45) NULL, + `end_date_date_range` VARCHAR(45) NULL, + `end_date_time_range` VARCHAR(45) NULL, + `agent` VARCHAR(255) NULL, + `source` VARCHAR(255) NULL, + `display_mode` INT NULL, + `capture_model` INT NULL, + `graph_type` INT NULL, + PRIMARY KEY (`id_filter`) +) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; + ALTER TABLE `talert_template_module_actions` ADD COLUMN `recovered` TINYINT NOT NULL DEFAULT 0; COMMIT; diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index aa884c5bec..9707a53769 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -13101,7 +13101,7 @@ function api_set_create_event($id, $trash1, $other, $returnType) ) { $values['status'] = 2; } - + api_set_validate_event_by_id($val['id_evento']); } } diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 189bef609c..b2f5091d4c 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -6934,14 +6934,15 @@ function html_print_go_top() return $output; } + /** * Render a code picker fragment with default Pandora styles. * * @param string $id, - * @param string $content Content. - * @param string $classes Classes for code picker. - * @param boolean $single_line If true, code picker will be displayed as a single line of code. - * @param boolean $return Return output if set to true. + * @param string $content Content. + * @param string $classes Classes for code picker. + * @param boolean $single_line If true, code picker will be displayed as a single line of code. + * @param boolean $return Return output if set to true. * * @return string */ diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 88c9b05c9e..e868f73d6d 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -4289,4 +4289,31 @@ CREATE TABLE IF NOT EXISTS `tfavmenu_user` ( `url` TEXT NOT NULL, `label` VARCHAR(255) NOT NULL, `section` VARCHAR(255) NOT NULL, - PRIMARY KEY (`id`)); \ No newline at end of file + PRIMARY KEY (`id`)); + +-- --------------------------------------------------------------------- +-- Table `tsesion_filter_log_viewer` +-- --------------------------------------------------------------------- +CREATE TABLE IF NOT EXISTS `tsesion_filter_log_viewer` ( + `id_filter` INT NOT NULL AUTO_INCREMENT, + `id_name` TEXT NULL, + `id_group_filter` TEXT NULL, + `id_search_mode` INT NULL, + `order` VARCHAR(45) NULL, + `search` VARCHAR(255) NULL, + `group_id` INT NULL, + `date_range` TINYINT NULL, + `start_date_defined` VARCHAR(45) NULL, + `start_date_time` VARCHAR(45) NULL, + `start_date_date` VARCHAR(45) NULL, + `start_date_date_range` VARCHAR(45) NULL, + `start_date_time_range` VARCHAR(45) NULL, + `end_date_date_range` VARCHAR(45) NULL, + `end_date_time_range` VARCHAR(45) NULL, + `agent` VARCHAR(255) NULL, + `source` VARCHAR(255) NULL, + `display_mode` INT NULL, + `capture_model` INT NULL, + `graph_type` INT NULL, + PRIMARY KEY (`id_filter`) +) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;