Defect #6612
SortHelper missing from CalendarsController
Status: | Closed | Start date: | 2010-10-08 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % 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
Add SortHelper so custom queries will run on the Calendar. #6612
History
#2
Updated by Eric Davis over 11 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 over 11 years ago
#4
Updated by Eric Davis over 11 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 over 11 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 over 11 years ago
- Status changed from Resolved to Closed
Merged into 1.0-stable for release in 1.0.3