[SOLVED] Store.commitChanges chokes on modified records that have been removed

  • I have a data store where I add a record, modify it, then remove it. Calling commitChanges gives the following error:

    Index or size is negative or greater than the allowed amount" code: "1
    [Break on this error] return this.getLockedTable().rows[index];

    I'm in Firefox, but it's an array indexing problem. The error is thrown in GridView.getLockedRow(). index is being passed as -1.

    This may be related to a separate problem that I've noticed: Ext.data.Store.getModifiedRecords() seems to return records that have been removed.


  • sorry about that.

    - the error message above is from Firebug with ext-all-debug.js, and no stack trace was provided.
    - Ext 1.0.1a or 1.1RC1 - same problem
    - YUI 2.2.0 + adapter
    - Firefox 2.0.0.5 on a Mac

    Here's an example that illustrates the bug:


    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">




    ext bug example










  • i have to nag once more... sigh :s

    http://extjs.com/forum/showthread.php?t=8887







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED] Store.commitChanges chokes on modified records that have been removed , Please add it free.