Premium support for our pure JavaScript UI components


Post by 24flow »

Hi,

We have a use case for unplanned work/ unplanned tasks to revert the changes when the backend returns an error on the save event. This all works fine, except the scheduler does not reset the duration field -> with as result the task is back in the unplanned grid, but the duration field is not set anymore.

It is reproducible on the public demo of unplanned work (https://bryntum.com/products/schedulerpro/examples/drag-unplanned-tasks/). Replace the onSave method with the following:

onSave() {
                Toast.show('TODO: Save data (see onSave() event for SchedulerPro)');
                // console.log('Changes:', this.project.changes);
this.project.commitAsync().then(() => {
    this.project.revertChanges();
    return this.project.commitAsync()
}).then(() => {
    this.project.acceptChanges();
});

        },
        

https://drive.google.com/file/d/1-9C4OUWLCAxXk-caWiK_3_1QTW0X5joi/view?usp=sharing


Post by alex.l »

Hi,

Thanks for clear instructions! Here is a ticket https://github.com/bryntum/support/issues/8746
You can subscribe on ticket updates to be notified when it's done.

All the best,
Alex


Post by 24flow »

Hi Alex,

What is the status on this issue?


Post by alex.l »

Hi,

No news yet, but we've increased a prio for this ticket now. The things should go faster from now.

All the best,
Alex


Post Reply