From 9fc3b52b2449e83c26174221392cc3edd8c97b1c Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 30 May 2016 09:25:29 +0000 Subject: [PATCH] Fix: cannot export an object with a property named "length" !! SVN:trunk[4161] --- js/tabularfieldsselector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tabularfieldsselector.js b/js/tabularfieldsselector.js index e78341b57..7d6e4a332 100644 --- a/js/tabularfieldsselector.js +++ b/js/tabularfieldsselector.js @@ -385,7 +385,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]) @@ -516,4 +516,4 @@ $(function() }); } }); -}); \ No newline at end of file +});