@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ a/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -534,6 +534,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { 'type': 'GET', 'cache': true, 'dataSrc': 'data', + 'traditional': true, 'beforeSend': function(xhr, settings) { this._xhr = xhr; if(options.embed) { @@ -630,9 +631,9 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { order.forEach(function (e,i) { var order_col = e.column; var order_by = options.columns[order_col].data; - order_by = order_by.split(':')[0]; + order_by = order_by.split(':'); var order_dir = e.dir == 'asc' ? '+' : '-'; - dataSet._order_by = order_dir + (!order_by.includes('.')?'me.'+order_by:order_by); + dataSet._order_by = order_by.map(x => order_dir + (!x.includes('.')?'me.'+x:x)); }); } --