]> source.dussan.org Git - redmine.git/commitdiff
Fix that viewing gantt causes SQL error with SQL Server (#32737).
authorGo MAEDA <maeda@farend.jp>
Thu, 2 Apr 2020 07:52:04 +0000 (07:52 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 2 Apr 2020 07:52:04 +0000 (07:52 +0000)
Patch by Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@19637 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index 16f180090b19b4c4d2673fb167f785fa5910c97c..206cdea24bdd95a9dcf3211148e3843fdf42aec9 100644 (file)
@@ -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