From e54740ec192b772fec5788e137de79eceb1872a0 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Mon, 13 Jan 2020 14:19:56 +0100 Subject: [PATCH] fixed parent input --- .../include/rest-api/models/VisualConsole/Item.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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, ], ];