diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 6f20323053..a6312c131a 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -631,6 +631,7 @@ function html_print_select_groups( inclusions: '', step: params.page || 1, strict: "", + not_condition: "", returnAllGroup: } diff --git a/pandora_console/include/lib/Group.php b/pandora_console/include/lib/Group.php index aef708e801..75cef0d45f 100644 --- a/pandora_console/include/lib/Group.php +++ b/pandora_console/include/lib/Group.php @@ -386,6 +386,7 @@ class Group extends Entity $search = get_parameter('search', ''); $step = get_parameter('step', 1); $limit = get_parameter('limit', false); + $not_condition = get_parameter('not_condition', ''); $exclusions = get_parameter('exclusions', '[]'); $inclusions = get_parameter('inclusions', '[]'); @@ -430,6 +431,11 @@ class Group extends Entity $return = self::prepareGroups($groups); + // When not_condition is select firts option text change All to None. + if ($not_condition === 'on') { + $return[0]['text'] = 'None'; + } + if (is_array($return) === false) { return; } diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 8856d89423..96724d51bc 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1954,7 +1954,6 @@ $table->data[4][0] .= __('Not condition');