From 8cdc5518bda95d8775ddc816ae13feab1665e70a Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Wed, 26 Aug 2020 00:55:45 +0530 Subject: [PATCH] fix: Timelime compose email --- frappe/public/js/frappe/form/footer/new_timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/form/footer/new_timeline.js b/frappe/public/js/frappe/form/footer/new_timeline.js index 9ca5b8be21..3ea9db8b69 100644 --- a/frappe/public/js/frappe/form/footer/new_timeline.js +++ b/frappe/public/js/frappe/form/footer/new_timeline.js @@ -32,7 +32,7 @@ frappe.ui.form.NewTimeline = class { } setup_timeline_actions() { - this.add_action_button(__('New Email'), this.compose_mail.bind(this)); + this.add_action_button(__('New Email'), () => this.compose_mail()); } add_action_button(label, action) {