]> source.dussan.org Git - redmine.git/commitdiff
Adds week column to time entries list (#20221).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 18:30:43 +0000 (18:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 18:30:43 +0000 (18:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14723 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/time_entry_query.rb

index 302a4246fdbf55c57ad10bd4eb858659c33a0830..cb3267298a0f78961b2d45321ddbae9b7e62ca6e 100644 (file)
@@ -22,6 +22,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(:tweek, :sortable => ["#{TimeEntry.table_name}.spent_on", "#{TimeEntry.table_name}.created_on"], :caption => l(:label_week)),
     QueryColumn.new(:user, :sortable => lambda {User.fields_for_order_statement}, :groupable => true),
     QueryColumn.new(:activity, :sortable => "#{TimeEntryActivity.table_name}.position", :groupable => true),
     QueryColumn.new(:issue, :sortable => "#{Issue.table_name}.id"),