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

Error with redmine 4.1.1 undefined method `options_for_selectable_queries' #48

Open
MEschenbacher opened this issue May 6, 2020 · 0 comments

Comments

@MEschenbacher
Copy link

I'm running redmine 4.1.1 and this is the error I'm seeing when I try to visit the admin settings page where this plugin is enabled

Other plugins:

redmine_checklists

Started GET "/projects/testproject/settings" for 2001:db8:: at 2020-05-06 16:47:17 +0200
Processing by ProjectsController#settings as HTML
  Parameters: {"id"=>"testproject"}
  Current user: user (id=)
  Rendering projects/settings.html.erb within layouts/base
  Rendered projects/_form.html.erb (12.2ms)
  Rendered projects/_edit.html.erb (13.1ms)
  Rendered projects/settings/_members.html.erb (80.3ms)
  Rendered projects/settings/_issues.html.erb (29.6ms)
  Rendered projects/settings/_versions.html.erb (6.1ms)
  Rendered projects/settings/_issue_categories.html.erb (2.7ms)
  Rendered plugins/redmine_checklists/app/views/projects/settings/_checklist_templates.html.erb (4.2ms)
  Rendered plugins/redmine_default_custom_query/app/views/default_custom_query_setting/_form.html.erb (114.0ms)
  Rendered common/_tabs.html.erb (254.5ms)
  Rendered projects/settings.html.erb within layouts/base (256.5ms)
Completed 500 Internal Server Error in 278ms (ActiveRecord: 24.3ms)
  
ActionView::Template::Error (undefined method `options_for_selectable_queries' for #<#<Class:0x0000000817f24c10>:0x000000081764b0d0>
Did you mean?  options_for_select):
     7: 
     8:   <div class="box tabular">
     9:     <p>
    10:       <%= f.select :query_id, options_for_selectable_queries(@project), include_blank: true %><br>
    11:       <em><%=l 'default_custom_query.text_allowed_queries' %></em>
    12:     </p>
    13:   </div>
  
plugins/redmine_default_custom_query/app/views/default_custom_query_setting/_form.html.erb:10:in `block in _plugins_redmine_default_custom_query_app_views_default_custom_query_setting__form_html_erb___1186724710437595683_17353471660'
app/helpers/application_helper.rb:1358:in `labelled_form_for'
plugins/redmine_default_custom_query/app/views/default_custom_query_setting/_form.html.erb:1:in `_plugins_redmine_default_custom_query_app_views_default_custom_query_setting__form_html_erb___1186724710437595683_17353471660'
app/views/common/_tabs.html.erb:21:in `block in _app_views_common__tabs_html_erb__1866765444854928881_17380913840'
app/views/common/_tabs.html.erb:20:in `each'
app/views/common/_tabs.html.erb:20:in `_app_views_common__tabs_html_erb__1866765444854928881_17380913840'
app/helpers/application_helper.rb:439:in `render_tabs'
app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb___2267329726800610017_17380747320'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
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

1 participant