diff --git a/pandora_console/include/rest-api/models/VisualConsole/Item.php b/pandora_console/include/rest-api/models/VisualConsole/Item.php index a9f07ca527..d243ebc916 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Item.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Item.php @@ -2042,6 +2042,7 @@ class Item extends CachedModel $fields = []; $fields[0] = __('None'); foreach ($vcItems as $key => $value) { + $text = ''; $data = $value->toArray(); switch ($data['type']) { case STATIC_GRAPH: @@ -2070,6 +2071,10 @@ class Item extends CachedModel $text = __('Percentile bar'); break; + case PERCENTILE_BUBBLE: + $text = __('Percentile bubble'); + break; + case CIRCULAR_PROGRESS_BAR: $text = __('Circular progress bar'); break; @@ -2109,7 +2114,9 @@ class Item extends CachedModel $text .= ' ('.$data['agentAlias'].')'; } - $fields[$data['id']] = $text; + if ($data['id'] !== $values['id']) { + $fields[$data['id']] = $text; + } } $inputs[] = [ @@ -2120,6 +2127,7 @@ class Item extends CachedModel 'name' => 'parentId', 'selected' => $values['parentId'], 'return' => true, + 'sort' => false, ], ];