From de3f83ab23d618c950a9dae97ab6d75eba27ad53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 19 May 2016 12:54:22 +0200 Subject: [PATCH] Add missing this binding in forEach method in Attachment.callback --- src/window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.js b/src/window.js index e4ff7e9ad7..7cff75d643 100644 --- a/src/window.js +++ b/src/window.js @@ -404,7 +404,7 @@ var resource = this.screen.group.model.fields.resource; this.screen.group.forEach(function(record) { resource.set_client(record, this.resource); - }); + }.bind(this)); prm = this.screen.group.save(); } if (this.attachment_callback) {