Commit 6820ef64 authored by jplang's avatar jplang
Browse files

Fixed: error raised when trying to view the gantt or calendar with a grouped query (#4751).

git-svn-id: https://svn.redmine.org/redmine/trunk@3379 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b40b171f
......@@ -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],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment