From 16a69495520e2ad9de0551aefeec74383a8135dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 15 May 2015 17:16:58 +0200 Subject: [PATCH] Pass validate to the next callback --- src/window.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.js b/src/window.js index 0c728989bb..80c843f513 100644 --- a/src/window.js +++ b/src/window.js @@ -226,6 +226,7 @@ if (validate && this.screen.attributes.pre_validate) { return this.screen.current_record.pre_validate(); } + return validate; }.bind(this)).then(function(validate) { var closing_prm = jQuery.Deferred(); if (validate && this.save_current) {