Merge branch 'ent-11990-error-al-configurar-un-servicio-existente' into 'develop'

Ent 11990 error al configurar un servicio existente

See merge request artica/pandorafms!6470
This commit is contained in:
Rafael Ameijeiras 2023-09-22 06:59:42 +00:00
commit 1ffebcf49c
3 changed files with 8 additions and 6 deletions

View File

@ -72,5 +72,6 @@ ALTER TABLE `treport_content` ADD COLUMN `cat_security_hardening` INT NOT NULL
ALTER TABLE `treport_content` ADD COLUMN `ignore_skipped` INT NOT NULL DEFAULT 0;
ALTER TABLE `treport_content` ADD COLUMN `status_of_check` TINYTEXT;
ALTER TABLE `tservice` ADD COLUMN `enable_horizontal_tree` TINYINT NOT NULL DEFAULT 0;
COMMIT;

View File

@ -398,8 +398,8 @@ function update_template($step)
'matches_value' => $matches,
'disable_event' => $disable_event,
'math_function' => $math_function,
'condition' => $condition,
'time_window' => $time_window,
'condition' => $condition,
'time_window' => $time_window,
];
$result = alerts_update_alert_template($id, $values);
@ -866,7 +866,7 @@ if ($step == 2) {
);
$table->data["math_function"][0] = html_print_label_input_block(
$table->data['math_function'][0] = html_print_label_input_block(
__('Math function'),
html_print_select(
alerts_get_alert_templates_functions(),
@ -883,7 +883,7 @@ if ($step == 2) {
)
);
$table->data["time_window"][0] = html_print_label_input_block(
$table->data['time_window'][0] = html_print_label_input_block(
__('Time window').ui_print_help_tip(__('Limits to data in the following time window.'), true),
html_print_select(
alerts_get_alert_templates_windows(),
@ -900,7 +900,7 @@ if ($step == 2) {
)
);
$table->data["condition"][0] = html_print_label_input_block(
$table->data['condition'][0] = html_print_label_input_block(
__('Alert condition'),
html_print_select(
alerts_get_alert_templates_conditions(),

View File

@ -2916,6 +2916,7 @@ CREATE TABLE IF NOT EXISTS `tservice` (
`is_favourite` TINYINT NOT NULL DEFAULT 0,
`enable_sunburst` TINYINT NOT NULL DEFAULT 0,
`asynchronous` TINYINT NOT NULL DEFAULT 0,
`enable_horizontal_tree` TINYINT NOT NULL DEFAULT 0,
`rca` TEXT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB