diff --git a/frappe/public/js/frappe/views/communication.js b/frappe/public/js/frappe/views/communication.js index 08797827fa..3ca9715556 100755 --- a/frappe/public/js/frappe/views/communication.js +++ b/frappe/public/js/frappe/views/communication.js @@ -554,7 +554,7 @@ frappe.views.CommunicationComposer = Class.extend({ }, is_print_letterhead_checked: function() { - if($(this.frm.wrapper).find('.form-print-wrapper').is(':visible')){ + if (this.frm && $(this.frm.wrapper).find('.form-print-wrapper').is(':visible')){ return $(this.frm.wrapper).find('.print-letterhead').prop('checked'); } else { return (frappe.model.get_doc(":Print Settings", "Print Settings") ||