1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Don't show project column by default when inside a project.

git-svn-id: http://svn.redmine.org/redmine/trunk@16042 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-12-03 08:29:44 +00:00
parent adc10e68a9
commit af1182c8ba

View File

@ -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