Page 1 of 1
[SCHEDULER PRO] - After changing a Resource, the Undo and Redo Operation Breaks.
Posted: Thu Aug 01, 2024 11:25 am
by rakshith.snps
Hi, I Noticed that undo and redo operation didnt work properly whenever i change the resources in the scheduler pro.
I copied my data into your salesforce example and made the source config similar to ours.
I was able to reproduce the problem.
Here is a demo.
Undo operation does not take it back to original position.
Further operations are broken.
- Resource Bug.gif (572.14 KiB) Viewed 449 times
Please check here for a runnable testcase.
It does not happen with data used by bryntum. So I am assuming it as something to do with our data. But not entirely sure.
I would appreciate your help in this.
Re: [SCHEDULER PRO] - After changing a Resource, the Undo and Redo Operation Breaks.
Posted: Thu Aug 01, 2024 8:09 pm
by alex.l
Hi,
We need more context since it worked for me using your code snippet. Please see video attached.
Try to upgrade to latest version.
Re: [SCHEDULER PRO] - After changing a Resource, the Undo and Redo Operation Breaks.
Posted: Fri Aug 02, 2024 1:24 am
by rakshith.snps
Hi Here are the steps to reproduce.
Move the event diagonally into another resource so that both resource and date times are changed.
then try doing multiple undo's and redo's for that operation.
Could you please check if you can reproduce it with the above steps.
We are using Bryntum v6.0.1.
Here is a demo please follow similar actions to reproduce the issue.
- Resource Bug.gif (572.14 KiB) Viewed 409 times
Re: [SCHEDULER PRO] - After changing a Resource, the Undo and Redo Operation Breaks.
Posted: Fri Aug 02, 2024 12:11 pm
by Maxim Gorkovsky
Hello.
Reproduced, ticket opened here: https://github.com/bryntum/support/issues/9728 Thank you for report.
I noticed that reason seems to be id collision between assignment and event record. For a workaround you can fix the id collision.
Re: [SCHEDULER PRO] - After changing a Resource, the Undo and Redo Operation Breaks.
Posted: Mon Aug 05, 2024 9:49 am
by rakshith.snps
Thank you. The workaround fixes the problem.
Re: [SCHEDULER PRO] - After changing a Resource, the Undo and Redo Operation Breaks.
Posted: Mon Aug 05, 2024 10:07 am
by alex.l
Hi,
We glad to hear. Please feel free to ask for help.