mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed target and source undefined
This commit is contained in:
parent
985a7eec97
commit
8b3ec8146d
@ -39,7 +39,7 @@ function networkmap_process_networkmap($id = 0) {
|
|||||||
$numNodes = (int)db_get_num_rows('
|
$numNodes = (int)db_get_num_rows('
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM titem
|
FROM titem
|
||||||
WHERE id_map = ' . $id . ';');
|
WHERE id_map = ' . $id . ' and deleted = 0');
|
||||||
|
|
||||||
$networkmap = db_get_row_filter('tmap',
|
$networkmap = db_get_row_filter('tmap',
|
||||||
array('id' => $id));
|
array('id' => $id));
|
||||||
@ -836,6 +836,11 @@ function networkmap_links_to_js_links($relations, $nodes_graph) {
|
|||||||
$item['source'] = $node['id'];
|
$item['source'] = $node['id'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (($item['target'] == -1) && ($item['source'] == -1) && $relation['parent_type'] == 1 && $relation['child_type'] == 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$return[] = $item;
|
$return[] = $item;
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user