SmartClient Version: v10.0p_2015-12-03/LGPL Deployment (built 2015-12-03)
After upgrading from v10.0p_2015-10-01/LGPL Deployment to v10.0p_2015-12-03/LGPL Deployment my SimpleTypes stopped working.
A cup of tea helped solve the problem (bold & underlined texts are my additions to released code):
addTypeFieldProperties : function (field, type) {
if (type && type.fieldProperties) {
var finalField = {};
for (var property in type.fieldProperties) {
// Duplicate editorProperties - we manipulated it directly on the
// widget and don't want to pollute the version on the type object
if (property == "editorProperties") {
finalField[property] = isc.addProperties({}, property); // ??? is this correct ? I had no Type with editorProperties to test it, but it looks fishy
} else {
finalField[property] = type.fieldProperties[property]; // BUG: finalField.align = "align" NOT finalField.align = "center"
}
}
// Allow explicit entries to clobber those picked up from the type.
return isc.addProperties(finalField, field); // BUG: no return
}
return field;
},
After upgrading from v10.0p_2015-10-01/LGPL Deployment to v10.0p_2015-12-03/LGPL Deployment my SimpleTypes stopped working.
A cup of tea helped solve the problem (bold & underlined texts are my additions to released code):
addTypeFieldProperties : function (field, type) {
if (type && type.fieldProperties) {
var finalField = {};
for (var property in type.fieldProperties) {
// Duplicate editorProperties - we manipulated it directly on the
// widget and don't want to pollute the version on the type object
if (property == "editorProperties") {
finalField[property] = isc.addProperties({}, property); // ??? is this correct ? I had no Type with editorProperties to test it, but it looks fishy
} else {
finalField[property] = type.fieldProperties[property]; // BUG: finalField.align = "align" NOT finalField.align = "center"
}
}
// Allow explicit entries to clobber those picked up from the type.
return isc.addProperties(finalField, field); // BUG: no return
}
return field;
},
Comment