mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
#11322 change throw_unknown_events token in remote components
This commit is contained in:
parent
98344296aa
commit
55794b640a
@ -327,7 +327,7 @@ $table->data[10][2] = __('Discard unknown events');
|
|||||||
$table->data[10][3] = html_print_checkbox(
|
$table->data[10][3] = html_print_checkbox(
|
||||||
'throw_unknown_events',
|
'throw_unknown_events',
|
||||||
1,
|
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
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ function network_components_is_disable_type_event($id=false, $type_event=false)
|
|||||||
if ($id === false) {
|
if ($id === false) {
|
||||||
switch ($type_event) {
|
switch ($type_event) {
|
||||||
case EVENTS_GOING_UNKNOWN:
|
case EVENTS_GOING_UNKNOWN:
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case EVENTS_UNKNOWN:
|
case EVENTS_UNKNOWN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user