Error After Updating task


#1

Hey, There’s an error after updating task in version dhtmlx-gantt@7.1.1
I have another project with version 7.0.13 but it doesn’t have this error.

image

Can you please tell me what’s wrong?


#2

Hello Ayman,
I couldn’t reproduce the issue in the following snippet:
http://snippet.dhtmlx.com/5/e2bbd9c9c

Probably, the issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please, add your configuration in the following snippet and make sure that the issue is reproduced there:
https://snippet.dhtmlx.com/38ee1b370
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.


#3

Hey, Sorry for late.
I reproduced the issue in your link but i didn’t get the error.
Here’s a sandbox with the issue i’m facing.

Try Adding a task or updating it.


#4

Hello Ayman,
Unfortunately, the demo application is not running, and there is no Gantt code:


#5

What, How ><
I’ll check it, thanks for letting me know


#6

@ramil
I added the code now, can you check it?


#7

Hello Ayman,
The example is still not working, and there is no Gantt code:


#8

Why this is happening, I checked before I share the link!
Here a zip file for the project:
dhtmlx-add-update-bug.zip (490.9 KB)


#9

Hello Ayman,
Thank you for sending the demo. I reproduced the issue. It occurs because you add the Undo extension after Gantt is initialized:


You need to enable extensions before Gantt is loaded. So, it is expected that some things are not working.
As soon as I move the undo plugin activation to the page with Gantt, the issue is no longer reproduced:


#10

Thank you very much @ramil. You’re really a life saver!