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:
parent
defdb972a1
commit
690fcbd81d
1 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,8 @@ class App.ControllerTable extends App.Controller
|
||||||
item = App[attributes[withId].relation].findNative(object[withId])
|
item = App[attributes[withId].relation].findNative(object[withId])
|
||||||
if item && item.displayName
|
if item && item.displayName
|
||||||
group = item.displayName().toLowerCase()
|
group = item.displayName().toLowerCase()
|
||||||
|
if _.isEmpty(group)
|
||||||
|
group = ''
|
||||||
groupObjects[group] ||= []
|
groupObjects[group] ||= []
|
||||||
groupObjects[group].push object
|
groupObjects[group].push object
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue