#4010 - Bug if i receive a mail without body
hi, we added . few modification to quickcompose.js
This mod covers the case when someone receive an email without text in this case the plugin does not write correctly the body
line 778
description_html = this.emailbean.get('description');
- description_html = description_html.replace(/(?:\r\n|\r|\n)/g, '<br />');//Replace newline-chars with <br/>
+
+ if (typeof description_html == 'undefined') {
+ description_html = '<br />';
+ }
+ else {
+ description_html = description_html.replace(/(?:\r\n|\r|\n)/g, '<br />');//Replace newline-chars with <br/>
+ }
5 years ago
Thanks for the contribution Pietro!
Br Joakim Norlinder