Merge branch 'ent-11322-cambiar-la-opcion-predeterminada-al-crear-el-componente-remoto' into 'develop'

Ent 11322 cambiar la opcion predeterminada al crear el componente remoto

See merge request artica/pandorafms!5937
This commit is contained in:
Rafael Ameijeiras 2023-05-30 09:41:27 +00:00
commit 045f249931
2 changed files with 2 additions and 2 deletions

View File

@ -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
);

View File

@ -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: