|
@@ -610,6 +610,10 @@
|
|
|
var column = [];
|
|
var column = [];
|
|
|
|
|
|
|
|
$(this).find('th').each(function () {
|
|
$(this).find('th').each(function () {
|
|
|
|
|
+ // Fix #2014 - getFieldIndex and elsewhere assume this is string, causes issues if not
|
|
|
|
|
+ if (typeof $(this).data('field') !== 'undefined') {
|
|
|
|
|
+ $(this).data('field', new String($(this).data('field')).valueOf());
|
|
|
|
|
+ }
|
|
|
column.push($.extend({}, {
|
|
column.push($.extend({}, {
|
|
|
title: $(this).html(),
|
|
title: $(this).html(),
|
|
|
'class': $(this).attr('class'),
|
|
'class': $(this).attr('class'),
|