Page 1 of 1

dayfile editor

Posted: Mon 16 Aug 2021 3:34 pm
by HansR
While editing the dayfile to correct ET i get the following message:

Code: Select all

DataTables warning: table id=dayfile - Requested unknown parameter '0' for row 0, column 0. 
For more information about this error, please see http://datatables.net/tn/4
The edit went well and there is no modified first row (row 0).
Does this have to do with the latest field addition (CreateMissing)?

Re: dayfile editor

Posted: Mon 16 Aug 2021 5:21 pm
by mcrossley
I haven't gotten around to dealing with that one yet. It occurs if an error occurs with either the dayfile or the DB update. MX returns an error message, but the page cannot cope with it! :(

I'm not sure how to handle it TBH, so I'll probably just revert to just logging the SQL error message and returning success if the dayfile is updated OK. Unless I can devote a day to digging into how the data tables Alt editor works!

Re: dayfile editor

Posted: Wed 18 Aug 2021 2:01 pm
by mcrossley
OK, figured something out - looks like the error handling has never worked properly!

Re: dayfile editor

Posted: Wed 18 Aug 2021 3:46 pm
by HansR
Great, thanks!
I'll feedback on the new release.