git-svn-id: http://svn.redmine.org/redmine/trunk@16042 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/3.4.0
@@ -122,7 +122,11 @@ class TimeEntryQuery < Query | |||
end | |||
def default_columns_names | |||
@default_columns_names ||= [:project, :spent_on, :user, :activity, :issue, :comments, :hours] | |||
@default_columns_names ||= begin | |||
default_columns = [:spent_on, :user, :activity, :issue, :comments, :hours] | |||
project.present? ? default_columns : [:project] | default_columns | |||
end | |||
end | |||
def default_totalable_names |