From 864e2c8449ed60458fcce3e9df3e25300162db1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Nov 2018 19:18:39 +0100 Subject: [PATCH] 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 --- src/window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.js b/src/window.js index c8ebfe9f30..fe97c9d833 100644 --- a/src/window.js +++ b/src/window.js @@ -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));