I am having an issue where added tasks don't sync properly. It syncs and then returns data back. But then changes show a new task has been added with the updated id.
{
"added": [
{
"parentIndex": 3,
"StartDate": "2022-10-31 08:00:00",
"EndDate": "2022-10-31 17:00:00",
"Duration": 1,
"durationUnit": "day",
"cls": "",
"iconCls": "empty",
"style": "background-color: #undefined",
"Name": "j",
"effortUnit": "hour",
"effortDriven": true,
"SchedulingMode": "FixedDuration",
"baselines": [],
"parentId": "71b60806-f2ad-4310-8fcf-7eedd286ec11",
"Milestone": false,
"WBS": "4",
"taskorder": 4,
"$PhantomId": "_generatedn_a1cf40d4-a40f-400c-a47e-ba43b74e5dcc"
}
]
}
that is in the changes. Notice the phantom id
tasks:{
"rows": [
{
"parentIndex": 3,
"StartDate": "2022-10-31 08:00:00",
"EndDate": "2022-10-31 17:00:00",
"Duration": 1,
"durationUnit": "day",
"cls": "",
"Name": "j",
"direction": "Forward",
"ignoreResourceCalendar": null,
"leaf": true,
"Id": "0d546284-494c-462e-aca5-7bdd47299d90",
"$PhantomId": "_generatedn_a1cf40d4-a40f-400c-a47e-ba43b74e5dcc"
}
],
"removed": []
}
This is what is returned. It then sets the task to the new id. But now in the changes object we have what appears to be a new added task with that new id
[
{
"parentIndex": 3,
"StartDate": "2022-10-31 08:00:00",
"EndDate": "2022-10-31 17:00:00",
"Duration": 1,
"durationUnit": "day",
"cls": "",
"iconCls": "empty",
"style": "background-color: #undefined",
"Name": "j",
"CalendarId": null,
"direction": "Forward",
"$PhantomId": "0d546284-494c-462e-aca5-7bdd47299d90"
}
]
This happened after upgrading to 5.2.1. Additionally. project.clearChanges() wont even clear out that added task