summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2016-10-05 16:45:05 +0200
committerDenis Ledoux <dle@odoo.com>2016-10-05 16:46:55 +0200
commit60a59b607a77f690b31a24f1adc0daf323fc90a8 (patch)
treed642d80074fe559224559123c297d7ab5d55ce92 /addons/mail/static/src/xml
parentfb363b572b2296a811a33c0c7478599a05e308e3 (diff)
[FIX] mail: handle undefined customer_email_data
`customer_email_data` can be undefined. It must therefore be checked before testing its length e.g. use the /helpdesk command with an anonymous visitor of the livechat opw-690301
Diffstat (limited to 'addons/mail/static/src/xml')
-rw-r--r--addons/mail/static/src/xml/thread.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml
index b5ed0081d74..b9579be0790 100644
--- a/addons/mail/static/src/xml/thread.xml
+++ b/addons/mail/static/src/xml/thread.xml
@@ -94,7 +94,7 @@
<t t-if="message.origin_id &amp;&amp; (message.origin_id !== options.channel_id)">
(from <a t-att-data-oe-id="message.origin_id" href="#">#<t t-esc="message.origin_name"/></a>)
</t>
- <span t-if="options.display_email_icon &amp;&amp; message.customer_email_data.length" class="o_thread_tooltip_container">
+ <span t-if="options.display_email_icon &amp;&amp; message.customer_email_data &amp;&amp; message.customer_email_data.length" class="o_thread_tooltip_container">
<i t-att-class="'o_thread_tooltip o_thread_message_email o_thread_message_email_' + message.customer_email_status + ' fa fa-envelope-o'"/>
<span class="o_thread_tooltip_content">
<t t-foreach="message.customer_email_data" t-as="customer">