Added nodes regeneration in map group updates
This commit is contained in:
parent
868f84f3c4
commit
4c07fe5d3f
|
@ -27,6 +27,10 @@ function networkmap_delete_networkmap($id = 0) {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function networkmap_delete_nodes($id_map) {
|
||||||
|
return db_process_sql_delete('titem', array('id_map' => $id_map));
|
||||||
|
}
|
||||||
|
|
||||||
function networkmap_process_networkmap($id = 0) {
|
function networkmap_process_networkmap($id = 0) {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
|
|
@ -248,6 +248,10 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
|
||||||
true);
|
true);
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
// If change the group, the map must be regenerated
|
||||||
|
if ($id_group != $id_group_old) {
|
||||||
|
networkmap_delete_nodes($id);
|
||||||
|
}
|
||||||
$networkmap_write = $networkmap_write_new;
|
$networkmap_write = $networkmap_write_new;
|
||||||
$networkmap_manage = $networkmap_manage_new;
|
$networkmap_manage = $networkmap_manage_new;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue