プロジェクト

全般

プロフィール

Defect #1279

完了

Undefined method `add_available_filter' error with Redmine 2.2.1

Yukinari Toyota さんが10年以上前に追加. 約7年前に更新.

ステータス:
終了(Closed)
優先度:
通常(Normal)
担当者:
-
対象バージョン:
開始日:
2013/08/30
期日:
進捗率:

100%

予定工数:

説明

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:

他の形式にエクスポート: Atom PDF