Project

General

Profile

Feature #20221 » RM_20221_time_entry_query_column_week.diff

Jérôme BATAILLE, 2015-07-01 18:43

View differences:

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