]> source.dussan.org Git - redmine.git/commitdiff
Fixed: error raised when trying to view the gantt or calendar with a grouped query...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 6 Feb 2010 18:07:25 +0000 (18:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 6 Feb 2010 18:07:25 +0000 (18:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3379 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 08032e70350f39f181431a9c5269cd59ee40e286..efe578fff859fc2525c1a0b40f71b8cf99bcf943 100644 (file)
@@ -387,6 +387,7 @@ class IssuesController < ApplicationController
   def gantt
     @gantt = Redmine::Helpers::Gantt.new(params)
     retrieve_query
+    @query.group_by = nil
     if @query.valid?
       events = []
       # Issues that have start and due dates
@@ -426,6 +427,7 @@ class IssuesController < ApplicationController
     
     @calendar = Redmine::Helpers::Calendar.new(Date.civil(@year, @month, 1), current_language, :month)
     retrieve_query
+    @query.group_by = nil
     if @query.valid?
       events = []
       events += @query.issues(:include => [:tracker, :assigned_to, :priority],