#11432 added tips in threshold and setted default value how 0

This commit is contained in:
Daniel Cebrian 2023-06-01 15:35:43 +02:00
parent f7c5d6b296
commit 92842df7b8
3 changed files with 5 additions and 5 deletions

View File

@ -166,10 +166,10 @@ $table->data[1][1] = html_print_label_input_block(
); );
$table->data[2][0] = html_print_label_input_block( $table->data[2][0] = html_print_label_input_block(
__('Threshold'), __('Threshold').ui_print_help_tip(__('It takes precedence over the action\'s threshold configuration.'), true),
html_print_extended_select_for_time( html_print_extended_select_for_time(
'module_action_threshold', 'module_action_threshold',
0, '0',
'', '',
'', '',
'', '',

View File

@ -144,7 +144,7 @@ if ($disabled) {
$name = ''; $name = '';
$id_command = ''; $id_command = '';
$group = 0; $group = 0;
$action_threshold = 0; $action_threshold = '0';
// All group is 0. // All group is 0.
if ($id) { if ($id) {
$action = alerts_get_alert_action($id); $action = alerts_get_alert_action($id);
@ -284,7 +284,7 @@ $table->data[1][0] = html_print_label_input_block(
); );
$table->data[1][1] = html_print_label_input_block( $table->data[1][1] = html_print_label_input_block(
__('Threshold'), __('Threshold').ui_print_help_tip(__('An alert action is executed only once within this time interval, regardless of how many times the alert is triggered.'), true),
html_print_extended_select_for_time( html_print_extended_select_for_time(
'action_threshold', 'action_threshold',
$action_threshold, $action_threshold,

View File

@ -688,7 +688,7 @@ if ($step == 2) {
); );
$table->data[2][0] = html_print_label_input_block( $table->data[2][0] = html_print_label_input_block(
__('Time threshold'), __('Time threshold').ui_print_help_tip(__('Reset the alert counter within the configured period if there is no manual recovery or validation of the alert.'), true),
html_print_extended_select_for_time( html_print_extended_select_for_time(
'threshold', 'threshold',
$threshold, $threshold,