Bug #7615
closed
Unable to create a non-taxonomy role filter when current context set
Added by Thomas McKay about 10 years ago.
Updated over 6 years ago.
Category:
Organizations and Locations
|
Description
As admin, visit try creating a new role filter in the UI for resource type Role. After submit no error message is displayed but the create page remains (versus normal behavior of returning to full list of filters). Looking at log an error is present of "Failed to save: Organization ids You can't assign organizations to this resource".
- Bugzilla link set to 1145814
- Related to Bug #5541: Filter of resource type Organization can result in error condition when trying to access organization resources added
- Subject changed from unable to create a role filter to Unable to create a non-taxonomy role filter when current context set
Only happens when multi-org's enabled and a current context is set, then the current context's added to the filter.
Looks like the add_current_* methods aren't being overridden correctly, they're overridden as class methods when they're actually instance methods.
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2291 added
- Pull request deleted (
)
- Category changed from Users, Roles and Permissions to Organizations and Locations
- Assignee set to Marek Hulán
Thanks Dom, fixed the scope of methods.
- Translation missing: en.field_release set to 28
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF