Added function to update link to other map
This commit is contained in:
parent
9592868491
commit
74753918c3
|
@ -212,6 +212,7 @@ function networkmap_process_networkmap($id = 0) {
|
||||||
$style['width'] = $node['width'];
|
$style['width'] = $node['width'];
|
||||||
$style['height'] = $node['height'];
|
$style['height'] = $node['height'];
|
||||||
$style['label'] = $node['text'];
|
$style['label'] = $node['text'];
|
||||||
|
$style['id_networkmap'] = $node['networkmap'];
|
||||||
$nodes_and_relations['nodes'][$index]['style'] = json_encode($style);
|
$nodes_and_relations['nodes'][$index]['style'] = json_encode($style);
|
||||||
|
|
||||||
$index++;
|
$index++;
|
||||||
|
@ -399,6 +400,13 @@ function networkmap_db_node_to_js_node($node, &$count, &$count_item_holding_area
|
||||||
$item['map_id'] = $node['id_map'];
|
$item['map_id'] = $node['id_map'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($node['style']['id_networkmap']) || $node['style']['id_networkmap'] == '' || $node['style']['id_networkmap'] == 0) {
|
||||||
|
$item['networkmap_id'] = 0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$item['networkmap_id'] = $node['style']['id_networkmap'];
|
||||||
|
}
|
||||||
|
|
||||||
$count++;
|
$count++;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
|
|
Loading…
Reference in New Issue