summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry_query.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-24 06:14:33 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-24 06:14:33 +0000
commitffa4e02817479f1b657c69f640630c8d4c3b8a29 (patch)
treeafb36c8b831d240af76acfa4b192bea77b47eabb /app/models/time_entry_query.rb
parente08b2d0f32005e8af0e416858dde0558b1f99e8f (diff)
downloadredmine-ffa4e02817479f1b657c69f640630c8d4c3b8a29.tar.gz
redmine-ffa4e02817479f1b657c69f640630c8d4c3b8a29.zip
Group time entries by created date (#30233).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18003 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry_query.rb')
-rw-r--r--app/models/time_entry_query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb
index 0c42206c0..f974ab6d9 100644
--- a/app/models/time_entry_query.rb
+++ b/app/models/time_entry_query.rb
@@ -25,7 +25,7 @@ class TimeEntryQuery < Query
self.available_columns = [
QueryColumn.new(:project, :sortable => "#{Project.table_name}.name", :groupable => true),
QueryColumn.new(:spent_on, :sortable => ["#{TimeEntry.table_name}.spent_on", "#{TimeEntry.table_name}.created_on"], :default_order => 'desc', :groupable => true),
- QueryColumn.new(:created_on, :sortable => "#{TimeEntry.table_name}.created_on", :default_order => 'desc'),
+ TimestampQueryColumn.new(:created_on, :sortable => "#{TimeEntry.table_name}.created_on", :default_order => 'desc', :groupable => true),
QueryColumn.new(:tweek, :sortable => ["#{TimeEntry.table_name}.spent_on", "#{TimeEntry.table_name}.created_on"], :caption => :label_week),
QueryColumn.new(:author, :sortable => lambda {User.fields_for_order_statement}),
QueryColumn.new(:user, :sortable => lambda {User.fields_for_order_statement}, :groupable => true),