From c3d226a45080fc8d9fa504042d89099537953d77 Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <renaud.legac@free.fr>
Date: Wed, 23 Mar 2011 21:22:21 +0000
Subject: [PATCH] Finally find the correct way to reset a form and to load
 default value.

---
 static/plugin_dbui/src/appform.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/static/plugin_dbui/src/appform.js b/static/plugin_dbui/src/appform.js
index a00e2eb7..9d4ce651 100644
--- a/static/plugin_dbui/src/appform.js
+++ b/static/plugin_dbui/src/appform.js
@@ -170,7 +170,7 @@ App.form.FormPanel = Ext.extend(Ext.form.FormPanel, {
         var form = this.getForm();
         
         form.items.each(function (field) {
-            field.originalValue = "";
+            field.originalValue = field.initialConfig.value;
         });
         
         form.reset();
-- 
GitLab