[FIX] mail: typo get id of mentionned channel/partner
opw-673962
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user