Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-6595 in a recent build.
  1. #1
    grgur's Avatar
    Join Date
    Aug 2007
    Split, Croatia
    Vote Rating
    grgur has a spectacular aura about grgur has a spectacular aura about


    Default BasicForm reset should remove reference to _record

    BasicForm reset should remove reference to _record

    Ext version tested:
    • Ext 4.1

    Browser versions tested against:
    • Chrome 21

    DOCTYPE tested against:
    • <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "">

    • I am using the same instance of a form to create and update data in a store. When I update, i use loadRecord() to load data from an existing instance. If the next step was creating a record, just by doing formPanel.getForm().reset() will still keep the old _record reference in memory, thus updateRecord() will try to write over the last record used. reset method should ideally delete the _record reference, and updateMethod should exit gracefully if no record is supplied.
    • Not sure if this is a feature request or a bug. The whole idea is lessening the amount of code on the app side and keeping the logic within the framework

    Possible fix:
        // Ext.form.Basic
       reset: function() {
            var me     = this,
                fields = me.getFields().items,
                fLen   = fields.length;
            for (f = 0; f < fLen; f++) {
            // delete reference to me._record if it exists
            delete me._record;
            return me;
        updateRecord: function(record) {
            record = record || this._record;
            // just exit gracefully if record does not exist
            if (!record) {
                return false;
            var fields = record.fields.items,
                values = this.getFieldValues(),
                obj = {},
                i = 0,
                len = fields.length,
            for (; i < len; ++i) {
                name  = fields[i].name;
                if (values.hasOwnProperty(name)) {
                    obj[name] = values[name];
            return this;
    Grgur Grisogono
    Ext JS in Action SE co-author
    Exercising awesomeness at Modus Create - Official Sencha Partner

    Get in touch for Sencha Touch Training

  2. #2
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Vote Rating
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all



    Thanks for the great bug report! Fixed for 4.1.2
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."