Defect #6612

SortHelper missing from CalendarsController

Added by Felix Schäfer about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:2010-10-08
Priority:NormalDue date:
Assignee:Eric Davis% Done:

100%

Category:Calendar
Target version:1.0.3
Resolution:Fixed Affected version:

Description

I just tried to show a calendar with a custom query, so something like: http://my.redmi.ne/issues/calendar?query_id=13, which causes redmine to quit on a:

NameError (undefined local variable or method `sort_clear' for #<CalendarsController:0x7f4400887b10>):
  app/helpers/queries_helper.rb:75:in `retrieve_query'
  app/controllers/calendars_controller.rb:23:in `show'

The solution is to include SortHelper in CalendarsController.

Associated revisions

Revision 4245
Added by Eric Davis about 7 years ago

Add SortHelper so custom queries will run on the Calendar. #6612

History

#1 Updated by Eric Davis about 7 years ago

  • Target version set to 1.0.3

Thanks, I'll fix that.

#2 Updated by Eric Davis about 7 years ago

  • Category set to Calendar
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Resolution set to Fixed

Fixed in r4245 and added a test case.

#3 Updated by Mischa The Evil about 7 years ago

Eric Davis wrote:

  • Target version set to 1.0.3

Shouldn't this be targetted to 1.1.0?

#4 Updated by Eric Davis about 7 years ago

Mischa The Evil wrote:

Shouldn't this be targetted to 1.1.0?

No, CalendarsController was refactored in the 1.0.x branch too.

#5 Updated by Mischa The Evil about 7 years ago

Eric Davis wrote:

Mischa The Evil wrote:

Shouldn't this be targetted to 1.1.0?

No, CalendarsController was refactored in the 1.0.x branch too.

ACK ;)

#6 Updated by Eric Davis about 7 years ago

  • Status changed from Resolved to Closed

Merged into 1.0-stable for release in 1.0.3

Also available in: Atom PDF