fix: check if frm is available
Prevents error when creating new Communication from list view.
This commit is contained in:
parent
46c5e30185
commit
90819667cf
1 changed files with 4 additions and 1 deletions
|
|
@ -196,7 +196,10 @@ frappe.views.CommunicationComposer = Class.extend({
|
|||
this.setup_last_edited_communication();
|
||||
this.setup_email_template();
|
||||
|
||||
this.dialog.set_value("email_template", this.frm.meta.default_email_template || '');
|
||||
if ('frm' in this) {
|
||||
this.dialog.set_value("email_template", this.frm.meta.default_email_template || '');
|
||||
}
|
||||
|
||||
this.dialog.set_value("recipients", this.recipients || '');
|
||||
this.dialog.set_value("cc", this.cc || '');
|
||||
this.dialog.set_value("bcc", this.bcc || '');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue