Skip to content
Snippets Groups Projects
Commit c3d226a4 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Finally find the correct way to reset a form and to load default value.

parent f0355f00
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment