Results 1 to 3 of 3

Thread: Model.replaceFields does not update fieldsMap of prototype correctly

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default Model.replaceFields does not update fieldsMap of prototype correctly

    This bug from 2k15.
    But not fixed yet.

    Ext version tested:

    • 6.6.0
    • 6.7.0

    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();
    },

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005

    Default

    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



  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    567

    Default

    Hello,

    Thank you for coming up with this override, the same has been updated in the Jira for review.

    Regards,
    Kumar
    Sencha Support.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •