From 144ed9a86cacbadffbdcdff0eb697f5ccee23ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 13 Sep 2015 10:15:56 +0200 Subject: [PATCH] Screen.save_current must return the promise from display When changing with next/previous from a modified record and save it, it can lead to the Screen.display is applied after the change of record but with the other record values. --- src/screen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.js b/src/screen.js index 60a94eb99a..f812d8b570 100644 --- a/src/screen.js +++ b/src/screen.js @@ -948,7 +948,7 @@ }.bind(this)); } var display = function() { - this.display(); + return this.display(); }.bind(this); return prm.then(display, display); },