Actions
Defect #1279
closedUndefined method `add_available_filter' error with Redmine 2.2.1
Defect #1279:
Undefined method `add_available_filter' error with Redmine 2.2.1
Start date:
08/30/2013
Due date:
% Done:
100%
Estimated time:
Description
After upgrading the plugin to commit:3b95ea0 , redmine 2.2.2 reports 500 Internal Server Error on issues page.
Here is log:
Started GET "/redmine/projects/xxx/issues" for x.x.x.x at 2013-08-30 18:29:38 +0900
Processing by IssuesController#index as HTML
Parameters: {"project_id"=>"xxx"}
Current user: t-yuki (id=x)
Completed 500 Internal Server Error in 258ms
NoMethodError (undefined method `add_available_filter' for #<Query:0x00000007445a28>):
app/helpers/queries_helper.rb:166:in `build_query_from_params'
app/helpers/queries_helper.rb:134:in `retrieve_query'
app/controllers/issues_controller.rb:56:in `index'
commit:67325dc injected this problem.
This commit uses add_available_filter method instead of direct access to @available_filers but it is only available on redmine 2.3.
Thus, direct access to @available_filters member is required to support redmine.2.2 or earlier.
Refs:
Actions