Bug #2320
Internal error when opening issues tab
Start date:
26 Jun 2014
Due date:
% Done:
0%
Redmine version:
External issue:
Description
- In the following cases, Internal error occurred in issues tab.
- enviroment:Extended Fields plugin v0.2.1, ruby v1.9.3 , Redmine v2.2.2
- Add a custom Field whose format is Project .
- Add a custom Field whose format is Text.
- Click Redmine Issues tab –> Internal error
get error log:
ActionView::Template::Error (comparison of Array with Array failed):
20: </td>
21: <td class="add-filter">
22: <%= label_tag('add_filter_select', l(:label_filter_add)) %>
23: <%= select_tag 'add_filter_select', filters_options_for_select(query), :name => nil %>
24: </td>
25: </tr>
26: </table>
app/helpers/queries_helper.rb:27:in `sort'
app/helpers/queries_helper.rb:27:in `filters_options'
app/helpers/queries_helper.rb:22:in `filters_options_for_select'
app/views/queries/_filters.html.erb:23:in `_app_views_queries__filters_html_erb___7312794_37643472
'
app/views/issues/index.html.erb:18:in `block in _app_views_issues_index_html_erb__1038509231_37556
724'
app/views/issues/index.html.erb:11:in `_app_views_issues_index_html_erb__1038509231_37556724'
app/controllers/issues_controller.rb:83:in `block (2 levels) in index'
app/controllers/issues_controller.rb:82:in `index'
I think that a cause is “lib/extended_custom_query_patch.rb” line 35.
source:lib/extended_custom_query_patch.rb#L35
@available_filters[filter_id] = options.merge({ :name => filter_name, :format => field.field_format }) if options
Above, a variable field is not added to options.
In Redmine model/query.add_custom_field_filter(field, assoc=nil) method, a variable field is added to options.
add_available_filter filter_id, options.merge({ :name => filter_name, :format => field.field_format, :field => field })
What do you think of it?
History
#1
Updated by Andriy Lesyuk about 11 years ago
- Status changed from New to Under Verification
- Assignee set to Andriy Lesyuk
- Target version set to 0.2.4