From 690fcbd81db2e720afee8efec636be3f4f3a72da Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 16 May 2017 15:08:49 +0200 Subject: [PATCH] Improved sorting/grouping - follow up fix for issue #1093 - Overview group by Organisation split multiple times and issue #1064 - Overview - Groups shown twice. --- .../app/controllers/_application_controller_table.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_table.coffee b/app/assets/javascripts/app/controllers/_application_controller_table.coffee index 7e4e256a1..429624b1b 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_table.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_table.coffee @@ -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