Project

General

Profile

Defect #1279

Undefined method `add_available_filter' error with Redmine 2.2.1

Added by Yukinari Toyota about 6 years ago. Updated over 2 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Assignee:
-
Target version:
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:

History

#1

Updated by Yukinari Toyota about 6 years ago

Sorry, I've created the issue with wrong project.
This is a report for redmine_hudson plugin.

#2

Updated by Haru Iida about 6 years ago

  • Project changed from r-labs to Hudson
#3

Updated by Toshiyuki Ando about 6 years ago

  • Target version set to 2.1.2
#4

Updated by Toshiyuki Ando about 6 years ago

Thanks for your report.

#5

Updated by Toshiyuki Ando about 6 years ago

  • Status changed from 新規(New) to 解決(Resolved)
  • % Done changed from 0 to 100

更新履歴 commit:88046e14e740 で適用されました。

#6

Updated by Toshiyuki Ando about 6 years ago

  • Status changed from 解決(Resolved) to 終了(Closed)

Also available in: Atom PDF