diff options
| author | Thibault Delavallée <tde@openerp.com> | 2013-05-24 16:42:24 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2013-05-24 16:42:24 +0200 |
| commit | 08167175268a669b80b672aa0c2bb0f50b60cab7 (patch) | |
| tree | 11219c1d7bc85499b4ba160a1a57f5e9a29fd846 /addons/mail/static/src | |
| parent | d0f4f8d0177edc126a72abbb8229042dd6f9cc2c (diff) | |
[FIX] Chatter: fixed suggested recipients, when having no email, unchecking the box was not taken into account.
bzr revid: tde@openerp.com-20130524144224-wbi1o27regxed7mn
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/js/mail.js | 4 | ||||
| -rw-r--r-- | addons/mail/static/src/xml/mail.xml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index f3e762d1f31..1e58dc47e22 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -850,9 +850,9 @@ openerp.mail = function (session) { on_checked_recipient: function (event) { var $input = $(event.target); - var email = $input.attr("data"); + var full_name = $input.attr("data"); _.each(this.recipients, function (recipient) { - if (recipient.email_address == email) { + if (recipient.full_name == full_name) { recipient.checked = $input.is(":checked"); } }); diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index ab82d650f30..f5004941a8d 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -143,7 +143,7 @@ <div class="oe_recipients" t-if="!widget.is_log"> <t t-foreach='widget.recipients' t-as='recipient'> <label t-attf-title="Add as recipient and follower (reason: #{recipient.reason})"> - <input type="checkbox" t-att-checked="recipient.checked ? 'checked' : undefined" t-att-data="recipient.email_address"/> + <input type="checkbox" t-att-checked="recipient.checked ? 'checked' : undefined" t-att-data="recipient.full_name"/> <t t-raw="recipient.name"/> <t t-if="recipient.email_address">(<t t-raw="recipient.email_address"/>)</t> <t t-if="!recipient.email_address">(no email address)</t> |
