[14.0] project_milestone : Wrong assignment of tasks to milestones when duplicating a project
When a project is copied, its milestones and tasks are copied as well.
The problem is that the copied tasks are linked to milestones in the old project instead of the new one.
Module
project_milestone
Describe the bug
The module project_milestone allows to define milestones for a project.
Multiple tasks in the project can be linked to a given milestone.
When a project is copied, its milestones and tasks are copied as well.
The problem is that the copied tasks are linked to milestones in the old project instead of the new one.
To Reproduce
14.0 and 12.0:
Steps to reproduce the behavior:
1.Activate the use of milestones in a created project
- Create new milestones 3.Create tasks and link them to milestones created in step 2
4- Duplicate the project with the created milestones and tasks
5- Milestones and tasks are well duplicated . Add (copy) as suffix name to the duplicated milestones
6- Nevertheless, tasks are assigned to old milestones not to the duplicated ones
Expected behavior Copied tasks should be linked to the copied milestones when duplicating a project.