Our state of the art Gantt chart


Post by daniel.piret »

Hello,

We are facing an issue with version 4.0.6 when resetting the queue, we have the following code:

 btnSave.onclick = function (evt) {
   configuration.revision++;
   gantt.project.crudRevision = configuration.revision;
   gantt.crudManager.sync().then(function (data) {
       if (data != null)  {
           var response = data.response;
           if (response.success == true) {
		gantt.project.stm.resetQueue();
                gantt.crudManager.clearChanges();
           }
       }
});

And we get the following error in the resetQueue line:

resetQueueError.png
resetQueueError.png (8.99 KiB) Viewed 596 times

We manage to reproduce this using the advanced example code and any model will have the same issue.

Is this the proper way to reset the Queue after sync the changes?


Post by Maxim Gorkovsky »

Hello Daniel.
This is a known problem, please see this issue for a workaround: https://github.com/bryntum/support/issues/2215


Post Reply