Project

General

Profile

Actions

Bug #4553

closed

Editing "miscellaneous" filter triggers: undefined method `pluralize' for nil:NilClass

Added by Dominic Cleal almost 11 years ago. Updated over 6 years ago.

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

Description

When editing a filter for the "Miscellaneous" (i.e. blank) resource_type, the following error occurs:

ActionView::Template::Error (undefined method `pluralize' for nil:NilClass):
    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:20:in `resource_path'
  app/views/filters/_form.html.erb:48:in `block in _b45b2ae2fba8a33ed854c14ac1956876'
  app/helpers/layout_helper.rb:246:in `form_for'
  app/views/filters/_form.html.erb:3:in `_b45b2ae2fba8a33ed854c14ac1956876'
  app/views/filters/edit.html.erb:3:in `_f35aa42ef6859ffae5b73ffa5586d845'
  app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
  lib/middleware/catch_json_parse_errors.rb:9:in `call'

Related issues 2 (1 open1 closed)

Related to Foreman - Bug #4554: Editing filter on namespaced resource type fails with undefined method `foreman_setup/provisioners_path'Duplicate03/05/2014Actions
Blocks Foreman - Tracker #4552: New permissions/authorization system issuesNew

Actions
Actions #1

Updated by Dominic Cleal almost 11 years ago

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

Updated by Dominic Cleal almost 11 years ago

  • Related to Bug #4554: Editing filter on namespaced resource type fails with undefined method `foreman_setup/provisioners_path' added
Actions #3

Updated by Marek Hulán almost 11 years ago

  • Status changed from New to Assigned
  • Assignee set to Marek Hulán
  • Target version set to 1.9.0
Actions #4

Updated by Marek Hulán almost 11 years ago

  • Status changed from Assigned to Ready For Testing
  • Translation missing: en.field_release set to 4
Actions #5

Updated by Marek Hulán almost 11 years ago

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

Also available in: Atom PDF