mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
New networkmaps in progress... (Fixed error in relations system)
This commit is contained in:
parent
86942ea2e1
commit
a849cb40b7
@ -436,7 +436,7 @@ function networkmap_links_to_js_links($relations, $nodes_graph) {
|
|||||||
enterprise_include_once('include/functions_pandora_networkmap.php');
|
enterprise_include_once('include/functions_pandora_networkmap.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($relations as $relation) {
|
foreach ($relations as $key => $relation) {
|
||||||
if (($relation['parent_type'] == 1) && ($relation['child_type'] == 1)) {
|
if (($relation['parent_type'] == 1) && ($relation['child_type'] == 1)) {
|
||||||
$id_target_agent = agents_get_agent_id_by_module_id($relation['id_parent_source_data']);
|
$id_target_agent = agents_get_agent_id_by_module_id($relation['id_parent_source_data']);
|
||||||
$id_source_agent = agents_get_agent_id_by_module_id($relation['id_child_source_data']);
|
$id_source_agent = agents_get_agent_id_by_module_id($relation['id_child_source_data']);
|
||||||
@ -457,7 +457,7 @@ function networkmap_links_to_js_links($relations, $nodes_graph) {
|
|||||||
$item['id_db'] = get_relation_id($relation);
|
$item['id_db'] = get_relation_id($relation);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$item['id_db'] = $relation['id'];
|
$item['id_db'] = $key;
|
||||||
}
|
}
|
||||||
$item['arrow_start'] = '';
|
$item['arrow_start'] = '';
|
||||||
$item['arrow_end'] = '';
|
$item['arrow_end'] = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user