Improved sorting/grouping - follow up fix for issue #1093 - Overview group by Organisation split multiple times and issue #1064 - Overview - Groups shown twice.

This commit is contained in:
Martin Edenhofer 2017-05-16 15:08:49 +02:00
parent defdb972a1
commit 690fcbd81d

View file

@ -243,7 +243,8 @@ class App.ControllerTable extends App.Controller
item = App[attributes[withId].relation].findNative(object[withId])
if item && item.displayName
group = item.displayName().toLowerCase()
if _.isEmpty(group)
group = ''
groupObjects[group] ||= []
groupObjects[group].push object