From: Go MAEDA Date: Thu, 2 Apr 2020 07:52:04 +0000 (+0000) Subject: Fix that viewing gantt causes SQL error with SQL Server (#32737). X-Git-Tag: 4.2.0~1116 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f3cece5bb03a2bec9714a0fcd8bc936b8de706c;p=redmine.git Fix that viewing gantt causes SQL error with SQL Server (#32737). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@19637 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 16f180090..206cdea24 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -151,7 +151,7 @@ module Redmine def issues @issues ||= @query.issues( :include => [:assigned_to, :tracker, :priority, :category, :fixed_version], - :order => "#{Project.table_name}.lft ASC, #{Issue.table_name}.id ASC", + :order => ["#{Project.table_name}.lft ASC", "#{Issue.table_name}.id ASC"], :limit => @max_rows ) end