[INFO REQ] Gantt - Updated WBS and sequence value not sent to server on task delete
Posted: Tue May 18, 2021 12:58 pm
by shaveta
Hi,
I have added a logic in my code to always write wbs value and sequence. It's working perfectly fine.
But when i delete tasks, these values are recalculated in UI, but never the tasks in store will be marked as updated. This is causing mismatch of WBS and sequence value between database and Gantt.
This can be easily reproduced in PHP example by deleting one of the task.
Any suggestion/patch to make it fix?
Re: [INFO REQ] Gantt - Updated WBS and sequence value not sent to server on task delete
On what level do you call this method? To refresh wbs code for all the project, we suggest to call gantt.project.refreshWbs()
sequenceNumber should be updated automatically. What issues do you have with it?
All the best,
Alex
sequenceNumber is updating automatically in UI and works fine with add/update tasks.. But on delete tasks i am not getting updated value for this field when sending data for sync to server.
I have called refreshQbs. But one thing that i have noticed with new gantt version is it is not refreshing wbs value in UI. In the advanced gantt example i have tried below code in console and trigger "DeleteTask". But WBS value in UI remains same, it's modified behind the scenes