remove unneeded Relation#all from TimeEntryQuery model
git-svn-id: http://svn.redmine.org/redmine/trunk@12732 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ea8febad03
commit
4f996fa5c2
|
@ -91,8 +91,10 @@ class TimeEntryQuery < Query
|
||||||
def available_columns
|
def available_columns
|
||||||
return @available_columns if @available_columns
|
return @available_columns if @available_columns
|
||||||
@available_columns = self.class.available_columns.dup
|
@available_columns = self.class.available_columns.dup
|
||||||
@available_columns += TimeEntryCustomField.visible.all.map {|cf| QueryCustomFieldColumn.new(cf) }
|
@available_columns += TimeEntryCustomField.visible.
|
||||||
@available_columns += IssueCustomField.visible.all.map {|cf| QueryAssociationCustomFieldColumn.new(:issue, cf) }
|
map {|cf| QueryCustomFieldColumn.new(cf) }
|
||||||
|
@available_columns += IssueCustomField.visible.
|
||||||
|
map {|cf| QueryAssociationCustomFieldColumn.new(:issue, cf) }
|
||||||
@available_columns
|
@available_columns
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue