Our state of the art Gantt chart


Post by bjork »

When adding an element in the Gantt client we get back a "real" elementId which is then added to the newly created element, the phantomId serving as a plcaeholder only. However when the state tracking manager undos a transaction, in this case removing the newly created element, it will send the phantomId as the elementId which is a little weird? Is this a bug or is there a setting somewhere that fixes this?

Post by saki »


Post by bjork »

It seems like stm can handle simple additions/deletions but behaves strange when adding a task with a dependency.

To provoke this behaviour:
1) Add new successor to a task
2) Delete this successor
3) Call stm.undo()

Post by sergey.maltsev »

Hi, bjork!

Next time please always create new post for each separate question.

I've checked it here with your steps
https://www.bryntum.com/examples/gantt/undoredo/

First undo restores deleted successor task.
Second undo removes it.
Successor.gif
Successor.gif (382.13 KiB) Viewed 1284 times

If you see a bug please create new post and attach code or give a detailed description what's is wrong.

Post Reply