New networkmaps in progress... (Fixed weird nodes)
This commit is contained in:
parent
234f71fee0
commit
0b758a6b0c
|
@ -564,9 +564,6 @@ function networkmap_links_to_js_links($relations, $nodes_graph) {
|
|||
}
|
||||
$agent = $relation['id_parent_source_data'];
|
||||
}
|
||||
}
|
||||
else if (($relation['parent_type'] == 3) && ($relation['child_type'] == 3)) {
|
||||
|
||||
}
|
||||
else {
|
||||
$agent = $relation['id_parent_source_data'];
|
||||
|
@ -582,6 +579,14 @@ function networkmap_links_to_js_links($relations, $nodes_graph) {
|
|||
$item['source'] = $node['id'];
|
||||
}
|
||||
}
|
||||
else if ($node['id_agent'] == 0 && $node['text'] == "") {
|
||||
if ($node['id'] == $relation['id_parent']) {
|
||||
$item['target'] = $node['id'];
|
||||
}
|
||||
else if($node['id'] == $relation['id_child']) {
|
||||
$item['source'] = $node['id'];
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($node['id_agent'] == $agent) {
|
||||
$item['target'] = $node['id'];
|
||||
|
|
Loading…
Reference in New Issue