[FIX] mail: typo get id of mentionned channel/partner

opw-673962
This commit is contained in:
Nicolas Lempereur
2016-04-07 18:00:27 +02:00
parent bf8bff19c9
commit 2948acfa56
+1 -6
View File
@@ -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 () {