Possible double includes in issue query in gantt helper (#33381).

Contributed by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@21028 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2021-06-06 04:48:24 +00:00
parent 63b71c90f1
commit d4fcebaee7

View File

@@ -152,7 +152,6 @@ module Redmine
# Returns issues that will be rendered
def issues
@issues ||= @query.issues(
:include => [:assigned_to, :tracker, :priority, :category, :fixed_version],
:order => ["#{Project.table_name}.lft ASC", "#{Issue.table_name}.id ASC"],
:limit => @max_rows
)