diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-04-12 11:12:57 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-04-12 11:12:57 +0200 |
| commit | eb443410ff0bd1bbec33a8d76dc9b279dbf34d70 (patch) | |
| tree | f4656e3f36b5843d31da8f4b4b3a62aa505340fd /addons/mail/static/src/js/composer.js | |
| parent | 282538cbfe4bec36434812d99ea190ea824bcf2b (diff) | |
| parent | afba8cec23bd5f803d26c196beeb73467c7743aa (diff) | |
[MERGE] forward port of branch 9.0 up to afba8ce
Diffstat (limited to 'addons/mail/static/src/js/composer.js')
| -rw-r--r-- | addons/mail/static/src/js/composer.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/addons/mail/static/src/js/composer.js b/addons/mail/static/src/js/composer.js index ae17f4a9854..896368c5961 100644 --- a/addons/mail/static/src/js/composer.js +++ b/addons/mail/static/src/js/composer.js @@ -243,12 +243,7 @@ var MentionManager = Widget.extend({ }, get_selection_id: function (match, selection) { - var m = match[0].slice(1); - _.each(selection, function (s) { - if(s.name == m){ - return s.id; - } - }); + return _.findWhere(selection, {'name': match[0].slice(1)}).id; }, reset_selections: function () { |
