better rendering time for projects/calendar
git-svn-id: http://redmine.rubyforge.org/svn/trunk@343 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -519,7 +519,12 @@ class ProjectsController < ApplicationController
|
||||
# finish on sunday
|
||||
@date_to = @date_to + (7-@date_to.cwday)
|
||||
|
||||
@issues = @project.issues.find(:all, :include => [:tracker, :status, :assigned_to, :priority], :conditions => ["((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?))", @date_from, @date_to, @date_from, @date_to])
|
||||
@issues = @project.issues.find(:all, :include => [:tracker, :status, :assigned_to, :priority],
|
||||
:conditions => ["((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?))", @date_from, @date_to, @date_from, @date_to])
|
||||
|
||||
@ending_issues_by_days = @issues.group_by {|issue| issue.due_date}
|
||||
@starting_issues_by_days = @issues.group_by {|issue| issue.start_date}
|
||||
|
||||
render :layout => false if request.xhr?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user