diff --git a/pandora_console/include/rest-api/models/VisualConsole/Item.php b/pandora_console/include/rest-api/models/VisualConsole/Item.php index 310b7bb56d..a2c309bd0c 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Item.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Item.php @@ -2197,6 +2197,11 @@ class Item extends CachedModel // Add nodeID. $node_visual_map['nodeId'] = (int) $server['id']; + // ID. + $node_visual_map['id'] = $node_visual_map['id']; + $node_visual_map['id'] .= '|'; + $node_visual_map['id'] .= $server['id']; + // Name = vc_name - (node). $node_visual_map['name'] = $node_visual_map['name']; $node_visual_map['name'] .= ' - ('; @@ -2234,8 +2239,10 @@ class Item extends CachedModel $getAllVisualConsoleValue = $values['linkedLayoutId']; if (\is_metaconsole() === true) { $getAllVisualConsoleValue = $values['linkedLayoutId']; - $getAllVisualConsoleValue .= '|'; - $getAllVisualConsoleValue .= $values['linkedLayoutNodeId']; + if ($values['linkedLayoutNodeId'] !== 0) { + $getAllVisualConsoleValue .= '|'; + $getAllVisualConsoleValue .= $values['linkedLayoutNodeId']; + } } $inputs[] = [ diff --git a/pandora_console/include/rest-api/models/VisualConsole/View.php b/pandora_console/include/rest-api/models/VisualConsole/View.php index 7df219845c..06b627dabc 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/View.php +++ b/pandora_console/include/rest-api/models/VisualConsole/View.php @@ -267,8 +267,6 @@ class View extends \HTML */ public function processForm() { - hd($_POST, true); - global $config; // Inserted data in new item. $vCId = \get_parameter('vCId', 0);