Page 1 of 1

[ANSWERED] Sync not called when indenting and outdenting

Posted: Thu Mar 26, 2020 4:47 pm
by Jerther
Hi!

I thought it would be best to report the issue here instead of using the feedback feature of the demo website since it is not a visual problem.

I'm using the latest version of Bryntum Gantt (2.1.0). I use the module bundle.

Steps:
- First, go to the basic example, expand the code editor and disable auto-apply.
- Then, replace the ProjectModel definition with this one. It just adds autoSync and a dummy sync url:
const project = new ProjectModel({
    autoSync: true,
    transport : {
        load : {
            url : '../_datasets/launch-saas.json'
        },
        sync: {
            url: 'https://localhost'
        }
    }
});
- Now hit Apply
- Open your browser dev console and watch for network calls
- In the Gantt diagram, indent some task. Of course, select a task that the scheduling engine will let you indent ;)

Result:
- No network call is made!

Expected:
- A call to the sync URL with data to be saved

Although if you edit the name of a task, the sync call triggers. Am I missing something?

Re: Sync not called when indenting and outdenting

Posted: Thu Mar 26, 2020 6:27 pm
by mats
Nope, it's a bug which we'll target for a patch release shortly. Track it here: https://github.com/bryntum/support/issues/367

Re: Sync not called when indenting and outdenting

Posted: Thu Mar 26, 2020 6:39 pm
by Jerther
Alright I'll follow this closely! Thanks a lot!