Actions
Bug #24046
closedForeman's HasManyCommon concern uses 'id' for a method Rails expects to return a string
Description
Foreman HasManyCommon concern uses 'id' as a value of last resort for the name of an attribute. But Rails expects this value to a return a string. This causes a problem for Katello. Take a look at the output here in Katello:
irb(main):001:0> Host.first Hirb Error: undefined method `gsub' for 2:Integer </rep> Where's that coming from? <pre> irb(main):006:0> Host.first.content_facet_attributes.to_s => 2 irb(main):007:0> Host.first.content_facet_attributes.to_s.is_a?(String) => false </pre> Foreman should use a method that returns string as a last resort.
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Stephen Benjamin
- Pull request https://github.com/theforeman/foreman/pull/5732 added
Updated by Tomer Brisker over 6 years ago
- Translation missing: en.field_release set to 353
Updated by Stephen Benjamin over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset ae96cb70130968bdcc8b7a9a9af7edc7c6e0d9a8.
Actions