diff --git a/pandora_console/include/lib/Dashboard/Widgets/maps_made_by_user.php b/pandora_console/include/lib/Dashboard/Widgets/maps_made_by_user.php index 9bbd69d470..80f6183bde 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/maps_made_by_user.php +++ b/pandora_console/include/lib/Dashboard/Widgets/maps_made_by_user.php @@ -304,8 +304,21 @@ class MapsMadeByUser extends Widget // Retrieve global - common inputs. $inputs = parent::getFormInputs(); + $node_id = $this->nodeId; + if (\is_metaconsole() === true && $node_id > 0) { + if (\metaconsole_connect(null, $node_id) !== NOERR) { + echo json_encode( + ['error' => __('Failed to connect to node %d', $node_id) ] + ); + } + } + $fields = $this->getVisualConsoles(); + if (\is_metaconsole() === true && $node_id > 0) { + \metaconsole_restore_db(); + } + // Visual console. $inputs[] = [ 'label' => __('Visual console'),