Editor Create Button Stopped Working
Editor Create Button Stopped Working
Hey,
Recently I updated Datatables+Editor to the latest version and today I've noticed that "Create" button stopped working. When I click the button, instead of opening the editor, it will redirect me to "/businesses/create" page (although I can't find that URL/path anywhere in my code, and route doesn't exist for that URL), and without triggering "open" or "initEdit" event. Strange thing is that "Edit" button and others work as they should. Another thing to mention is that this happens on all (3) pages that use buttons.
Any suggestion how to debug this problem or idea why this would happen?
Versions:
"datatables.net-bs": "~2.1.1",
"datatables.net-responsive-bs": "~2.1.1",
"datatables.net-buttons-bs": "~1.2.4",
"datatables.net-buttons-dt": "^1.2.4",
"datatables.net-select-bs": "~1.2.1",
"datatables.net-fixedheader-bs": "~3.1.2",
"datatables.net-colreorder": "^1.3.2",
"jQuery": "~1.12.4",
DataTables Editor: 1.6.1
This question has an accepted answers - jump to answer
Answers
I've found the source of the problem just after posting the question here.
I'm using this awesome package for Laravel (PHP) and Datatables, which I also updated and it has overwritten my buttons code with this (found it by searching for "/create" through whole source code).
So I just had to remove that.
Sorry for opening the post for no reason.
Thanks for the update. Good to hear you've got it working now.
Allan