Fixed problems with text of definition and fixed other problems. Ticket: #4242
This commit is contained in:
parent
00c81d5863
commit
c98242e996
|
@ -1022,7 +1022,7 @@ if ($update_module || $create_module) {
|
|||
|
||||
$throw_unknown_events = (bool)get_parameter('throw_unknown_events', false);
|
||||
//Set the event type that can show.
|
||||
$disabled_types_event = array(EVENTS_GOING_UNKNOWN => (int)$throw_unknown_events);
|
||||
$disabled_types_event = array(EVENTS_GOING_UNKNOWN => (int)!$throw_unknown_events);
|
||||
$disabled_types_event = io_json_mb_encode($disabled_types_event);
|
||||
|
||||
$module_macro_names = (array) get_parameter('module_macro_names', array());
|
||||
|
|
|
@ -427,7 +427,7 @@ else {
|
|||
$throw_unknown_events_check =
|
||||
policy_module_is_disable_type_event($__id_pol_mod, EVENTS_GOING_UNKNOWN);
|
||||
}
|
||||
$table_advanced->data[4][3] = __('Throw unknown events');
|
||||
$table_advanced->data[4][3] = __('Discard unknown events');
|
||||
$table_advanced->data[4][4] = html_print_checkbox('throw_unknown_events',
|
||||
1, $throw_unknown_events_check, true, $disabledBecauseInPolicy);
|
||||
$table_advanced->colspan[4][4] = 3;
|
||||
|
|
|
@ -570,7 +570,7 @@ if ($table->rowspan['edit10'][0] == 2) {
|
|||
else {
|
||||
$table->rowspan['edit10'][0] = $table->rowspan['edit10'][1] = 2;
|
||||
}
|
||||
$table->data['edit102'][2] = __('Throw unknown events');
|
||||
$table->data['edit102'][2] = __('Discard unknown events');
|
||||
|
||||
$table->data['edit102'][3] = html_print_select(
|
||||
array('' => __('No change'),
|
||||
|
|
|
@ -168,9 +168,9 @@ $table->data[8][3] = html_print_input_text ('max', $max, '', 5, 15, true) . ' '
|
|||
$table->data[9][0] = __('Unit');
|
||||
$table->data[9][1] = html_print_input_text ('unit', $unit, '', 12, 25, true);
|
||||
|
||||
$table->data[9][2] = __('Throw unknown events');
|
||||
$table->data[9][2] = __('Discard unknown events');
|
||||
$table->data[9][3] = html_print_checkbox('throw_unknown_events', 1,
|
||||
!network_components_is_disable_type_event($id, EVENTS_GOING_UNKNOWN), true);
|
||||
network_components_is_disable_type_event($id, EVENTS_GOING_UNKNOWN), true);
|
||||
|
||||
$table->data[10][0] = __('Critical instructions'). ui_print_help_tip(__("Instructions when the status is critical"), true);
|
||||
$table->data[10][1] = html_print_textarea ('critical_instructions', 2, 65, $critical_instructions, '', true);
|
||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue