fix(minor): communication.js remove old style print
This commit is contained in:
parent
cf2de1fa20
commit
2e2c72629e
1 changed files with 1 additions and 11 deletions
|
|
@ -450,17 +450,7 @@ frappe.views.CommunicationComposer = Class.extend({
|
|||
|
||||
|
||||
if(form_values.attach_document_print) {
|
||||
if (cur_frm.print_preview.is_old_style(form_values.select_print_format || "")) {
|
||||
cur_frm.print_preview.with_old_style({
|
||||
format: form_values.select_print_format,
|
||||
callback: function(print_html) {
|
||||
me.send_email(btn, form_values, selected_attachments, print_html);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
me.send_email(btn, form_values, selected_attachments, null, form_values.select_print_format || "");
|
||||
}
|
||||
|
||||
me.send_email(btn, form_values, selected_attachments, null, form_values.select_print_format || "");
|
||||
} else {
|
||||
me.send_email(btn, form_values, selected_attachments);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue