소스 검색

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
tags/3.4.0
Jean-Philippe Lang 7 년 전
부모
커밋
af1182c8ba
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      app/models/time_entry_query.rb

+ 5
- 1
app/models/time_entry_query.rb 파일 보기

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

Loading…
취소
저장