in practise, it seems that there are several bugs with editor 1.6
- The following code, xhr.responseJSON seems to be empty when submitting row update data. (chrome). did I missing some important depency?
Editor.prototype._ajax = function ( data, success, error )
{
var thrown;
var opts = {
type: 'POST',
dataType: 'json',
data: null,
error: [ function ( xhr, text, err ) {
thrown = err;
} ],
complete: [ function ( xhr, text ) {
// Use `complete` rather than `success` so that all status codes are
// caught and can return valid JSON (useful when working with REST
// services).
var json = xhr.status === 204 ?
{} :
xhr.responseJSON;
2 . server side, PHP5.3, for example, [_ssp_field] is a private class method. But PHP 5.3 do not allow a anonymous function with [use (that)] to access private members of [that] (which is actually that = this) . This leads to several problems.
One of the most important problem is , when a query condition is actually a callback function, in Query::xxx_where_xxx methods it just cannot access to [Join::_join] which is a private member field, so finally a "delete from where 1=1" will be generated. This happened in our production environments and made me so sad ![:( :(]()
For some reasons it is difficult for us to update php version, so I'm so happy to find a library like Datatables declared supporting php5.3.
Please test editor with php 5.3 as strictly as with php5.5+, thank you very much!