From 59eb9880fea9fbdf70c223097b9fa825689600ac Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Wed, 3 Feb 2021 13:01:31 +0100 Subject: [PATCH] vc link force being linked --- .../include/rest-api/models/VisualConsole/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/rest-api/models/VisualConsole/Item.php b/pandora_console/include/rest-api/models/VisualConsole/Item.php index d9ce7f2965..95ba132d03 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Item.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Item.php @@ -1462,8 +1462,8 @@ class Item extends CachedModel $result['linked_layout_node_id'] = $linked_layout_node_id; } - if ($id_layout_linked > 0 && $linked_layout_node_id > 0) { - // VC in node linked, force link status to enabled. + if ($id_layout_linked > 0) { + // If VC linked, force link status to enabled. $result['enable_link'] = 1; }