From f84bf4de681502a64f031be48f786b94c972972b Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 30 May 2016 09:27:29 +0000 Subject: [PATCH] Fix: cannot export an object with a property named "length" !! SVN:2.2.0[4162] --- js/tabularfieldsselector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tabularfieldsselector.js b/js/tabularfieldsselector.js index f97d443adb..8a2077eace 100644 --- a/js/tabularfieldsselector.js +++ b/js/tabularfieldsselector.js @@ -384,7 +384,7 @@ $(function() _flatten_fields: function(aFields) { // Update the "flattened" via of the fields - this.aFieldsByCode = []; + this.aFieldsByCode = {}; // Must be an object since indexes are non-numeric for(var k in aFields) { for(var i in aFields[k]) @@ -515,4 +515,4 @@ $(function() }); } }); -}); \ No newline at end of file +});