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
This commit is contained in:
parent
fece6aa4d0
commit
eac7fcff6e
@ -387,6 +387,7 @@ class IssuesController < ApplicationController
|
|||||||
def gantt
|
def gantt
|
||||||
@gantt = Redmine::Helpers::Gantt.new(params)
|
@gantt = Redmine::Helpers::Gantt.new(params)
|
||||||
retrieve_query
|
retrieve_query
|
||||||
|
@query.group_by = nil
|
||||||
if @query.valid?
|
if @query.valid?
|
||||||
events = []
|
events = []
|
||||||
# Issues that have start and due dates
|
# 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)
|
@calendar = Redmine::Helpers::Calendar.new(Date.civil(@year, @month, 1), current_language, :month)
|
||||||
retrieve_query
|
retrieve_query
|
||||||
|
@query.group_by = nil
|
||||||
if @query.valid?
|
if @query.valid?
|
||||||
events = []
|
events = []
|
||||||
events += @query.issues(:include => [:tracker, :assigned_to, :priority],
|
events += @query.issues(:include => [:tracker, :assigned_to, :priority],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user