Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal server error when custom value exists in search relusts #48

Closed
Dice801 opened this issue Mar 19, 2018 · 2 comments
Closed

Internal server error when custom value exists in search relusts #48

Dice801 opened this issue Mar 19, 2018 · 2 comments

Comments

@Dice801
Copy link

Dice801 commented Mar 19, 2018

Completed 500 Internal Server Error in 716ms (ActiveRecord: 674.1ms)

ActionView::Template::Error (uninitialized constant Customvalue):
    45:     <h3><%= l(:label_result_plural) %> (<%= @search_result.count %>)</h3>
    46:     <dl id="search-results">
    47:       <% @search_result.each do |e| %>
    48:         <dt class="<%= e.event_type %> icon icon-<%= e.event_type %>">
    49:           <%= content_tag('span', e.project, :class => 'project') unless @project == e.project %>
    50:           <%= link_to(e.event_title_digest, e.event_url, :data => { :rank => e.rank }) %>
    51:         </dt>
  plugins/full_text_search/app/models/full_text_search/searcher_record.rb:220:in `original_record'
  plugins/full_text_search/app/models/full_text_search/searcher_record.rb:254:in `_type'
  lib/plugins/acts_as_event/lib/acts_as_event.rb:64:in `event_type'
  plugins/full_text_search/app/views/search/index.html.erb:48:in `block in _plugins_full_text_search_app_views_search_index_html_erb___1145967650517626388_70308553923880'
  plugins/full_text_search/lib/full_text_search/searcher.rb:116:in `block in each'
  plugins/full_text_search/lib/full_text_search/searcher.rb:115:in `each'
  plugins/full_text_search/lib/full_text_search/searcher.rb:115:in `each'
  plugins/full_text_search/app/views/search/index.html.erb:47:in `_plugins_full_text_search_app_views_search_index_html_erb___1145967650517626388_70308553923880'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

ea09acb

0.7.1の変更により customvalue を capitilize した時に、恐らく CustomValue であるべきところが
Customvalue になっている(vが小文字)ために、検索結果にカスタムフィールドの値が含まれた時にエラーになってしまうと思われます。

@okkez okkez closed this as completed in f1243f3 Mar 20, 2018
@okkez
Copy link
Contributor

okkez commented Mar 20, 2018

報告ありがとうございます!
修正して v0.7.2 をリリースしました。

@Dice801
Copy link
Author

Dice801 commented Mar 22, 2018

修正ありがとうございました!
アップデートして問題なさそうです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants