fixed errors VC

This commit is contained in:
Daniel Barbero Martin 2020-01-28 12:44:37 +01:00
parent 0ad6e7842f
commit 73dcabc48d
2 changed files with 9 additions and 4 deletions

View File

@ -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[] = [

View File

@ -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);