Hello
While creating project with two tasks with same name and creating link from only one of them to parent. After import both tasks with same name got a link to parent.
Initial state:
A
|—> B
| B
After export and import:
A
|—> B
|—> B
How to reproduce:
Project project = new Project();
Task task1 = project.getRootTask().getChildren().add("A");
Task task2 = project.getRootTask().getChildren().add("B");
Task task3 = project.getRootTask().getChildren().add("B");
project.getTaskLinks().add(task1, task2, TaskLinkType.FinishToStart);
project.save("./project.mpx", SaveFileFormat.MPX);
System.out.println("links count: " + project.getTaskLinks().size());
Project importedProject = new Project("./project.mpx");
System.out.println("links count: " + importedProject.getTaskLinks().size());
Code result:
links count: 1
links count: 2
Expected code result:
links count: 1
links count: 1