From 55794b640a5d78f76f9582ef38280173cc6cce71 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 22 May 2023 18:12:14 +0200 Subject: [PATCH 1/2] #11322 change throw_unknown_events token in remote components --- .../godmode/modules/manage_network_components_form_common.php | 2 +- pandora_console/include/functions_network_components.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/modules/manage_network_components_form_common.php b/pandora_console/godmode/modules/manage_network_components_form_common.php index f7890712b3..d90f90d514 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_common.php +++ b/pandora_console/godmode/modules/manage_network_components_form_common.php @@ -327,7 +327,7 @@ $table->data[10][2] = __('Discard unknown events'); $table->data[10][3] = html_print_checkbox( 'throw_unknown_events', 1, - network_components_is_disable_type_event($id, EVENTS_GOING_UNKNOWN), + network_components_is_disable_type_event(($id === '0') ? false : $id, EVENTS_GOING_UNKNOWN), true ); diff --git a/pandora_console/include/functions_network_components.php b/pandora_console/include/functions_network_components.php index f6c0087b37..acce410dd6 100644 --- a/pandora_console/include/functions_network_components.php +++ b/pandora_console/include/functions_network_components.php @@ -31,7 +31,7 @@ function network_components_is_disable_type_event($id=false, $type_event=false) if ($id === false) { switch ($type_event) { case EVENTS_GOING_UNKNOWN: - return true; + return false; break; case EVENTS_UNKNOWN: From cfa61f07269ddc02b64de66770f2049433ea06fa Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 22 May 2023 18:14:48 +0200 Subject: [PATCH 2/2] #11322 fixed type --- .../godmode/modules/manage_network_components_form_common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/modules/manage_network_components_form_common.php b/pandora_console/godmode/modules/manage_network_components_form_common.php index d90f90d514..9af6f3911d 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_common.php +++ b/pandora_console/godmode/modules/manage_network_components_form_common.php @@ -327,7 +327,7 @@ $table->data[10][2] = __('Discard unknown events'); $table->data[10][3] = html_print_checkbox( 'throw_unknown_events', 1, - network_components_is_disable_type_event(($id === '0') ? false : $id, EVENTS_GOING_UNKNOWN), + network_components_is_disable_type_event(($id === 0) ? false : $id, EVENTS_GOING_UNKNOWN), true );