Bug #3974: Fix first setAction call

This commit is contained in:
Carlos Martín committed 2015-09-08 17:40:53 +02:00
1 parent d12c81e679
commit e0e9a26fda
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -740,6 +740,7 @@ define(function(require) {
} // Panel not defined
formPanelInstance = new formPanel();
formPanelInstance.setAction(formContext, action);
tab["formPanelInstances"][formPanelId] = formPanelInstance;
formPanelInstance.insert(formContext);
}
@@ -67,7 +67,7 @@ define(function(require) {
this.action = action;
if ((prevAction && prevAction != action) || action == "update") {
if (prevAction != undefined && (prevAction != action || action == "update")) {
this.reset(context);
}
}