diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 18:07:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 18:07:25 +0000 |
commit | eac7fcff6ef647de96312f26c8d276741b9f4334 (patch) | |
tree | cb73391713782b71624667cd6c45315f4801f764 | |
parent | fece6aa4d0f2a98cf0d12fb829ac09c3b34c5fbd (diff) | |
download | redmine-eac7fcff6ef647de96312f26c8d276741b9f4334.tar.gz redmine-eac7fcff6ef647de96312f26c8d276741b9f4334.zip |
Fixed: error raised when trying to view the gantt or calendar with a grouped query (#4751).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3379 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 08032e703..efe578fff 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -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], |