Project

General

Profile

Internal Server Error (500) when I save view

Added by János Csőke about 10 years ago

Hello,

I want to add new cloumn on Issues view (Issues tab). In Options section I choose the new columns and move this from Available Columns to Selected Columns. When I click Apply button, the Redmine shows the new column. But when I click Save button, I see Internal Error (Redmine 500 error) page.
I found this message in the log file:

ActionView::Template::Error (uninitialized constant Query::VISIBILITY_PRIVATE):
    17:
    18: <% if User.current.admin? || User.current.allowed_to?(:manage_public_queries, @project) %>
    19: <p><label><%=l(:field_visible)%></label>
    20:   <label class="block"><%= radio_button 'query', 'visibility', Query::VISIBILITY_PRIVATE %> <%= l(:label_visibility_private) %></label>
    21:   <label class="block"><%= radio_button 'query', 'visibility', Query::VISIBILITY_ROLES %> <%= l(:label_visibility_roles) %>:</label>
    22:   <% Role.givable.sorted.each do |role| %>
    23:     <label class="block role-visibility"><%= check_box_tag 'query[role_ids][]', role.id, @query.roles.include?(role), :id => nil %> <%= role.name %></label>
  app/views/queries/new.html.erb:4:in `block in _app_views_queries_new_html_erb__2756455417563115028_70253424478020'
  app/views/queries/new.html.erb:3:in `_app_views_queries_new_html_erb__2756455417563115028_70253424478020'

Version info of my Redmine:

Environment:
  Redmine version                2.3.2.stable
  Ruby version                   2.1.1-p76 (2014-02-24) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  redmine_backlogs               v1.0.6
  redmine_better_gantt_chart     0.9.0
  redmine_ckeditor               1.0.15
  redmine_plugin_views_revisions 0.0.1
  redmine_smart_issues_sort      0.3.1
  redmine_spent_time             2.5.0

Any idea, how do I resolve this problem?