Browse Source

Custom query breaks calendar view with error 500 (#27153).

Patch by Bernhard Rohloff.

git-svn-id: http://svn.redmine.org/redmine/trunk@17155 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.0.0
Jean-Philippe Lang 6 years ago
parent
commit
747e183a6b
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      app/controllers/calendars_controller.rb

+ 1
- 0
app/controllers/calendars_controller.rb View File

@@ -39,6 +39,7 @@ class CalendarsController < ApplicationController
@calendar = Redmine::Helpers::Calendar.new(Date.civil(@year, @month, 1), current_language, :month)
retrieve_query
@query.group_by = nil
@query.sort_criteria = nil
if @query.valid?
events = []
events += @query.issues(:include => [:tracker, :assigned_to, :priority],

Loading…
Cancel
Save