Results 1 to 4 of 4

Thread: Updating a record in a store with a sorter fires add and remove events

    You found a bug! We've classified it as EXTJS-15440 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,751
    Vote Rating
    129
      0  

    Default Updating a record in a store with a sorter fires add and remove events

    hi team,

    the same one as my bug report for ext 5, not sure if this is tagged in your Jira for this version as well.

    https://www.sencha.com/forum/showthread.php?293232

    https://fiddle.sencha.com/#fiddle/bmf (switch to ext 6).

    I double checked the code for 6.0.1.177.

    It would be nice to drop in the following override, since this bug really is a showstopper.

    Code:
    Ext.define('Ext.overrides.data.Store', {
        override : 'Ext.data.Store',
    
        afterEdit : function (record, modifiedFieldNames) {
            var me                     = this,
                ignoreCollectionAdd    = me.ignoreCollectionAdd,
                ignoreCollectionRemove = me.ignoreCollectionRemove;
    
            me.ignoreCollectionAdd = me.ignoreCollectionRemove = true;
    
            me.needsSync = me.needsSync || record.dirty;
            me.afterChange(record, modifiedFieldNames, Ext.data.Model.EDIT);
    
            me.ignoreCollectionAdd    = ignoreCollectionAdd;
            me.ignoreCollectionRemove = ignoreCollectionRemove;
        }
    });
    thx and best regards
    tobi
    Best regards
    Tobias Uhlig

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    293
      0  

    Default

    Thanks for the report. Looks like we're tracking that issue here:
    https://www.sencha.com/forum/showthread.php?293232

  3. #3
    Sencha Premium Member rkleinkromhof's Avatar
    Join Date
    Apr 2013
    Location
    Enschede, The Netherlands
    Posts
    52
    Vote Rating
    4
      0  

    Default

    This seems to be fixed in 6.0.1.250.

    Your fiddle example no longer logs the add and remove events when using Ext JS 6.0.1.250 (tested with classic Neptune, classic Triton and modern Triton).

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    293
      0  

    Default

    Thanks for the update. I've confirmed it and noted it on the bug ticket, which will stay open until the issue can be fixed in 5.x.

Similar Threads

  1. Replies: 7
    Last Post: 16 Mar 2016, 4:17 PM
  2. Replies: 3
    Last Post: 10 Mar 2016, 1:50 PM
  3. [FIXED] Cannot remove a Sorter object from a Sorter collection
    By kpiland in forum Ext 5: Bugs
    Replies: 5
    Last Post: 23 Oct 2014, 4:02 PM
  4. Replies: 2
    Last Post: 18 Mar 2013, 10:36 AM
  5. Replies: 1
    Last Post: 3 Dec 2012, 7:42 AM

Posting Permissions

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