diff --git a/static/plugin_dbui/src/appgridroweditor.js b/static/plugin_dbui/src/appgridroweditor.js index 9ab224cfd31826429f4c1671bb06dfa60d24daa5..b0abc85a478d75477bb408b5d99780d70373599a 100644 --- a/static/plugin_dbui/src/appgridroweditor.js +++ b/static/plugin_dbui/src/appgridroweditor.js @@ -75,14 +75,14 @@ App.grid.RowEditor = Ext.extend(Ext.Window, { // This approach relies on the Ext.StrMgr. // However this approach creates confusion in listeners. // It is why we force the use of the same object. - this.formPanel.store = this.grid.store; + formCfg.store = null; // instanciate the form this.formPanel = Ext.ComponentMgr.create(formCfg); + this.formPanel.store = this.grid.store; this.add(this.formPanel); - // add a listeners to catch store exception - // since listener on the formPanel never fire in this context ! + // add a listeners to catch the store exception this.grid.store.on('exception', this.formPanel.onStoreException, this.formPanel);