Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
Model.replaceFields does not update fieldsMap of prototype correctly
This bug from 2k15.
But not fixed yet.
Ext version tested:
https://www.sencha.com/forum/showthr...type-correctly
Fix:
Code:
Ext.define('Overrides.data.Model', {
override: 'Ext.data.Model',
getFieldsMap: function () {
return this.self.getFieldsMap();
}
});
Look at your method getFields. It too use "this.self"
/**
* Get the fields array for this model.
* @return {Ext.data.field.Field[]} The fields array
*/
getFields: function () {
return this.self.getFields();
},
-
Sencha - Forum Administrator
Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.
Thanks again,
Michele
-
Ext Support Team
Hello,
Thank you for coming up with this override, the same has been updated in the Jira for review.
Regards,
Kumar
Sencha Support.