From 2a01c7294e4a99d7fd2a067a47d46b9314a73093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 29 Aug 2016 10:13:33 +0200 Subject: [PATCH] Sort specific keys as integers This is actually logic from reporting, but there's no way to discover which keys are used to fix the sorting. --- lib/report/query_utils.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/report/query_utils.rb b/lib/report/query_utils.rb index aa1e61597c..a9d49e9947 100644 --- a/lib/report/query_utils.rb +++ b/lib/report/query_utils.rb @@ -226,6 +226,7 @@ module Report::QueryUtils def map_field(key, value) case key.to_s when 'singleton_value', /_id$/ then convert_unless_nil(value) { |v| v.to_i } + when 'work_package_id', 'tweek', 'tmonth', 'tweek' then value.to_i else convert_unless_nil(value) { |v| v.to_s } end end