Fix typo for view type test in Sao.Window.Form

The attribute of the view which contains the type is view_type.
It was introduced by changeset e0a583fa4edc.

issue7847
This commit is contained in:
Cédric Krier committed 2018-11-07 19:18:39 +01:00
1 parent f73d551e72
commit 864e2c8449
1 file changed
+1 -1
+1 -1
View File
@@ -58,7 +58,7 @@
this.switch_prm = this.screen.switch_view(view_type)
.done(function() {
if (kwargs.new_ &&
(this.screen.current_view.type == view_type)) {
(this.screen.current_view.view_type == view_type)) {
this.screen.new_(undefined, kwargs.rec_name);
}
}.bind(this));