diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9fb784195a..84704ef39a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,20 @@ +2009-04-01 Esteban Sanchez + + * pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added + priority field to talert_templates and removed from + talert_template_module. + + * godmode/alerts/alert_list.php: Fixed SQL notice when fetching + groups. + + * godmode/alerts/alert_templates.php: Added priority to the template + tooltip. + + * godmode/alerts/configure_alert_template.php: Added priority field to + alert templates. + + * include/functions_db.php: Style correction. + 2009-04-01 Jorge Gonzalez * include/languages/pt_BR.po, include/languages/es.po, @@ -13,7 +30,7 @@ Simplified Chineese, Italian, and Russian translations thanks to rosetta contributors. - include/languages/index.pot: Updated po template. + * include/languages/index.pot: Updated po template. 2009-03-31 Esteban Sanchez diff --git a/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql b/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql index a3fc619394..f1e6e291e5 100644 --- a/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql @@ -98,6 +98,7 @@ CREATE TABLE IF NOT EXISTS `talert_templates` ( `recovery_notify` tinyint(1) default '0', `field2_recovery` varchar(255) NOT NULL default '', `field3_recovery` mediumtext NOT NULL, + `priority` tinyint(4) default '0', PRIMARY KEY (`id`), FOREIGN KEY (`id_alert_action`) REFERENCES talert_actions(`id`) ON DELETE SET NULL ON UPDATE CASCADE @@ -112,7 +113,6 @@ CREATE TABLE IF NOT EXISTS `talert_template_modules` ( `last_reference` bigint(20) NOT NULL default '0', `times_fired` int(3) NOT NULL default '0', `disabled` tinyint(1) default '0', - `priority` tinyint(4) default '0', `force_execution` tinyint(1) default '0', PRIMARY KEY (`id`), FOREIGN KEY (`id_agent_module`) REFERENCES tagente_modulo(`id_agente_modulo`) diff --git a/pandora_console/godmode/alerts/alert_list.php b/pandora_console/godmode/alerts/alert_list.php index 84c07e6d74..9441d110db 100644 --- a/pandora_console/godmode/alerts/alert_list.php +++ b/pandora_console/godmode/alerts/alert_list.php @@ -332,7 +332,7 @@ if (! $id_agente) { false, '', '', true); $table->data['agent'][0] = __('Agent'); - $table->data['agent'][1] = print_select (array_keys (get_group_agents ($groups, false, "none")), + $table->data['agent'][1] = print_select (array_keys (get_group_agents (array_keys ($groups), false, "none")), 'id_agent', 0, false, __('Select'), 0, true); $table->data['agent'][1] .= '