mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-3674-discovery-fase-3' of brutus.artica.lan:artica/pandorafms into ent-3674-discovery-fase-3
Former-commit-id: 755d2013c4f25475eb4f38dec9a8974c74f08715
This commit is contained in:
commit
8e00fdebb4
@ -1616,6 +1616,16 @@ class NetworkMap
|
|||||||
|
|
||||||
if (is_array($node['style']) === false) {
|
if (is_array($node['style']) === false) {
|
||||||
$node['style'] = json_decode($node['style'], true);
|
$node['style'] = json_decode($node['style'], true);
|
||||||
|
|
||||||
|
// Add styles.
|
||||||
|
if (isset($source_data['style']) === true
|
||||||
|
&& is_array($source_data['style']) === true
|
||||||
|
) {
|
||||||
|
$node['style'] = array_merge(
|
||||||
|
$node['style'],
|
||||||
|
$source_data['style']
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Propagate styles.
|
// Propagate styles.
|
||||||
@ -2722,6 +2732,7 @@ class NetworkMap
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->nodesJS = $this->nodesToJS($nodes);
|
$this->nodesJS = $this->nodesToJS($nodes);
|
||||||
|
|
||||||
$output .= 'networkmap.nodes = ('.json_encode($this->nodesJS).");\n";
|
$output .= 'networkmap.nodes = ('.json_encode($this->nodesJS).");\n";
|
||||||
|
|
||||||
// Clean.
|
// Clean.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user