fix_label_week_in_timelog_report.patch

Alexander Meindl, 2017-08-28 17:32

Download (1.07 KB)

View differences:

app/models/time_entry_query.rb
23 23
  self.available_columns = [
24 24
    QueryColumn.new(:project, :sortable => "#{Project.table_name}.name", :groupable => true),
25 25
    QueryColumn.new(:spent_on, :sortable => ["#{TimeEntry.table_name}.spent_on", "#{TimeEntry.table_name}.created_on"], :default_order => 'desc', :groupable => true),
26
    QueryColumn.new(:tweek, :sortable => ["#{TimeEntry.table_name}.spent_on", "#{TimeEntry.table_name}.created_on"], :caption => l(:label_week)),
26
    QueryColumn.new(:tweek, :sortable => ["#{TimeEntry.table_name}.spent_on", "#{TimeEntry.table_name}.created_on"], :caption => :label_week),
27 27
    QueryColumn.new(:user, :sortable => lambda {User.fields_for_order_statement}, :groupable => true),
28 28
    QueryColumn.new(:activity, :sortable => "#{TimeEntryActivity.table_name}.position", :groupable => true),
29 29
    QueryColumn.new(:issue, :sortable => "#{Issue.table_name}.id"),