Commit 4fa77fab authored by jplang's avatar jplang

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

git-svn-id: https://svn.redmine.org/redmine/trunk@16042 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b9f529fc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment