Actions
Bug #12021
closedUse .to_param to find parent object in LookupKeys controller
Description
On Rails 4, .find will not default to .friendly.find so find_hostgroup, find_environment and find_host will fail for non numeric IDs. However, we can use from_param to find these objects. This is something we can do both on Rails 3 and Rails 4, whereas using .friendly isn't an option until friendly_id 5.0, which depends on Rails 4.
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2870 added
- Pull request deleted (
)
Updated by The Foreman Bot about 9 years ago
- Assignee set to Daniel Lobato Garcia
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 71
Updated by Daniel Lobato Garcia about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset fb9f45e819fbd15946084cd7cacd737dca5aa32e.
Actions