bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

STM cannot undo a transaction which moves event and reassigns it #9728

Closed bmblb closed 3 weeks ago

bmblb commented 1 month ago

Reported here: https://forum.bryntum.com/viewtopic.php?f=51&t=29971&p=151885#p151885

Steps to reproduce:

  1. replace app.js in gantt-schedulerpro demo with one from this archive app.zip
  2. run the demo
  3. run foo1() or foo2() in the console, notice event changing the resource and left position
  4. run gantt.project.stm.undo() not that only one action is reverted, depending on which function was called. foo1 moves event first and then changes assignment, foo2 uses reversed order

Problem appears to be related to the id collision between event and assignment. If assignement ids are updated to avoid the collision - undo works just fine.