The issue is present at least in stock smartgwt-3.1 and the latest nightly build of that version.
It is caused by DataSource.js in the method validateJSONRecord:
There are two nested for loops using the same index:
Changing the inner loop index from i to j solves the issue.
It is caused by DataSource.js in the method validateJSONRecord:
There are two nested for loops using the same index:
Code:
validateJSONRecord : function (record) {
var fieldNames = this.getFieldNames(),
result = {};
for (var i = 0; i < fieldNames.length; i++) {
(...)
if (fieldDS && !(fieldDS.skipJSONValidation)) {
if (!(isc.isAn.Array(fieldValue))) {
fieldValue = fieldDS.validateJSONRecord(fieldValue);
} else {
for (var i = 0; i < fieldValue.length; i++) {
fieldValue[i] = fieldDS.validateJSONRecord(fieldValue[i]);
}
}
}
(...)
Comment