aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/table_builder_helper.rb
diff options
context:
space:
mode:
authorjpl2017-07-31 11:44:24 +0200
committerjpl2017-07-31 11:45:10 +0200
commitb455261a4b611e86d3f4072c5f62e6dbeaa582c6 (patch)
tree98c51a7d9cc431f20471fe7bf42844b3b9d35dd1 /app/helpers/table_builder_helper.rb
parentbba83cb56a56d2f26e9c380b22fc542228d2eabc (diff)
downloadchouette-core-b455261a4b611e86d3f4072c5f62e6dbeaa582c6.tar.bz2
Refs #4187: updating routes#show table
Diffstat (limited to 'app/helpers/table_builder_helper.rb')
-rw-r--r--app/helpers/table_builder_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index 897e842a8..375697bec 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -175,12 +175,11 @@ module TableBuilderHelper
sort_on,
sort_direction
)
- if !table_is_sortable
+
+ if !table_is_sortable || !column.sortable
return column.header_label(collection_model)
end
- return column.name if !column.sortable
-
direction =
if column.key.to_s == sort_on && sort_direction == 'desc'
'asc'