#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, '');//Replace newline-chars with
+
+ if (typeof description_html == 'undefined') {
+ description_html = '';
+ }
+ else {
+ description_html = description_html.replace(/(?:\r\n|\r|\n)/g, '');//Replace newline-chars with
+ }
~~~
6 years ago