Project

General

Profile

Actions

Bug #4960

closed

undefined method `host_classes_path' when editing filter on "host class"

Added by Dominic Cleal almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Create a (role) filter with the "Host class" edit_classes permission, then go back and edit it and it will fail:

ActionView::Template::Error (undefined method `host_classes_path' for #<#<Class:0x007f6facb28860>:0x007f6fb95070f0>):
    45: 
    46:         <%= autocomplete_f f, :search,
    47:                            :disabled => f.object.unlimited?,
    48:                            :path => resource_path(f.object.resource_type), :control_group_id => 'search_group' %>
    49:       </div>
    50:     </div>
    51: 
  app/helpers/filters_helper.rb:28:in `resource_path'
  app/views/filters/_form.html.erb:48:in `block in _app_views_filters__form_html_erb___2057435471048220807_70058920025860'
  app/helpers/layout_helper.rb:248:in `form_for'
  app/views/filters/_form.html.erb:3:in `_app_views_filters__form_html_erb___2057435471048220807_70058920025860'
  app/views/filters/edit.html.erb:3:in `_app_views_filters_edit_html_erb__944164940854790638_70058919033000'
  app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'

Related issues 1 (1 open0 closed)

Blocks Foreman - Tracker #4552: New permissions/authorization system issuesNew

Actions
Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Blocks Tracker #4552: New permissions/authorization system issues added
Actions #2

Updated by Dominic Cleal almost 10 years ago

  • translation missing: en.field_release set to 4
Actions #3

Updated by Tomáš Strachota almost 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota
Actions #4

Updated by Tomáš Strachota almost 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #5

Updated by Dominic Cleal almost 10 years ago

  • Target version set to 1.8.4
Actions #6

Updated by Anonymous almost 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF