mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-8049-Bug-en-widget-Visual-console-de-Dasboards-metaconsola' into 'develop'
Ent 8049 bug en widget visual console de dasboards metaconsola See merge request artica/pandorafms!4450
This commit is contained in:
commit
4eb40382dd
@ -304,8 +304,21 @@ class MapsMadeByUser extends Widget
|
|||||||
// Retrieve global - common inputs.
|
// Retrieve global - common inputs.
|
||||||
$inputs = parent::getFormInputs();
|
$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();
|
$fields = $this->getVisualConsoles();
|
||||||
|
|
||||||
|
if (\is_metaconsole() === true && $node_id > 0) {
|
||||||
|
\metaconsole_restore_db();
|
||||||
|
}
|
||||||
|
|
||||||
// Visual console.
|
// Visual console.
|
||||||
$inputs[] = [
|
$inputs[] = [
|
||||||
'label' => __('Visual console'),
|
'label' => __('Visual console'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user