From 0f563da1d964dde6943391b02588f36287a5ac0b Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <renaud.legac@free.fr>
Date: Sun, 13 Mar 2011 16:59:19 +0000
Subject: [PATCH] Polish the method addFormPanel.

---
 static/plugin_dbui/src/appgridroweditor.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/static/plugin_dbui/src/appgridroweditor.js b/static/plugin_dbui/src/appgridroweditor.js
index 9ab224cf..b0abc85a 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);
-- 
GitLab