New networkmaps in progress... (Fixed weird nodes)

This commit is contained in:
Arturo Gonzalez 2016-10-10 09:43:43 +02:00
parent 234f71fee0
commit 0b758a6b0c
1 changed files with 8 additions and 3 deletions

View File

@ -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'];