From 747e183a6b4043d119f5ef48969729952d38e03f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 7 Jan 2018 22:28:08 +0000 Subject: [PATCH] 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 --- app/controllers/calendars_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb index 8193ef4fc..e07ba2e61 100644 --- a/app/controllers/calendars_controller.rb +++ b/app/controllers/calendars_controller.rb @@ -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], -- 2.39.5