[ANSWERED] Sync not called when indenting and outdenting

Our state of the art Gantt chart


Post Reply
User avatar
Jerther
Posts: 73
Joined: Thu Mar 26, 2020 4:29 pm
Location: Québec, Canada

[ANSWERED] Sync not called when indenting and outdenting

Post 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:

Code: Select all

const project = new ProjectModel({
    autoSync: true,
    transport : {
        load : {
            url : '../_datasets/launch-saas.json'
        },
        sync: {
            url: 'http://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?

User avatar
mats
Core Developer
Core Developer
Posts: 15905
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Sync not called when indenting and outdenting

Post 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
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
Jerther
Posts: 73
Joined: Thu Mar 26, 2020 4:29 pm
Location: Québec, Canada

Re: Sync not called when indenting and outdenting

Post by Jerther »

Alright I'll follow this closely! Thanks a lot!

Post Reply