Fixed update map

This commit is contained in:
Arturo Gonzalez 2017-11-30 16:50:10 +01:00
parent ac06725d99
commit 031196782b
1 changed files with 0 additions and 25 deletions

View File

@ -362,7 +362,6 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
}
$name = (string) get_parameter('name', '');
$method = (string) get_parameter('method', 'fdp');
$recon_task_id = (int) get_parameter(
'recon_task_id', 0);
@ -377,30 +376,6 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
$values['name'] = $name;
$values['id_group'] = $id_group;
switch ($method) {
case 'twopi':
$values['generation_method'] = 2;
break;
case 'dot':
$values['generation_method'] = 1;
break;
case 'circo':
$values['generation_method'] = 0;
break;
case 'neato':
$values['generation_method'] = 3;
break;
case 'fdp':
$values['generation_method'] = 4;
break;
case 'radial_dinamic':
$values['generation_method'] = 6;
break;
default:
$values['generation_method'] = 2;
break;
}
$description = get_parameter('description', '');
$values['description'] = $description;