Fixed issue #2599 - Activation of Knowledgebase is impossible on IE11 - agent interface

This commit is contained in:
Denny Bresch 2019-06-13 11:27:32 +02:00 committed by Thorsten Eckel
parent 80294b0b51
commit 8b435e2295
2 changed files with 2 additions and 2 deletions

View file

@ -313,7 +313,7 @@ class App.KnowledgeBaseAgentController extends App.Controller
.map (model) ->
newIds = Object.keys data[model]
oldIds = App[model].all().map (elem) -> elem.id
diff = oldIds.filter (elem) -> !newIds.includes(String(elem))
diff = oldIds.filter (elem) -> !_.includes(newIds, String(elem))
{modelName: model, ids: diff}
, {}

View file

@ -46,7 +46,7 @@ class App.MultiLocales extends App.Controller
.filter (elem) -> elem && elem != self_value
App.Locale.all().filter (elem) ->
!takenCodes.includes(String(elem.id))
!_.includes(takenCodes, String(elem.id))
remove: (e) ->
domRow = $(e.currentTarget).closest('tr')[0]