Project

General

Profile

Actions

Bug #5553

closed

Filter create/edit breaks if the resource type does not have a corresponding controller with 'autocomplete_search'

Added by Eric Helms about 10 years ago. Updated almost 6 years ago.

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

Description

If a permission set is created and specifies a resource type that does not contain an autocomplete route, the permissions aren't loaded by the UI and leaves the user in a weird broken state that they are unaware of. The line that leads to this is - https://github.com/theforeman/foreman/blob/develop/app/helpers/filters_helper.rb#L14 which throws a backend error since the first argument is nil.


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Bug #5578: Cant set permissions on specific resource types Closed05/05/2014Actions
Copied to Foreman - Feature #5753: Allow customisation of autocomplete_search path for resources in filter create/editClosed05/02/2014Actions
Actions

Also available in: Atom PDF