Skip to content

Commit

Permalink
Improved sorting/grouping - follow up fix for issue zammad#1093 - Ove…
Browse files Browse the repository at this point in the history
…rview group by Organisation split multiple times and issue zammad#1064 - Overview - Groups shown twice.
  • Loading branch information
martini committed May 16, 2017
1 parent defdb97 commit 690fcbd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 690fcbd

Please sign in to comment.