diff --git a/src/window.js b/src/window.js index e4ff7e9..7cff75d 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) {