Actions
Bug #12109
closedrails 4 compatibility - user_role validation fix
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/2801 added
- Pull request deleted (
)
Updated by Daniel Lobato Garcia about 9 years ago
Description from the PR
in rails 4, owner is not populated when creating a join model (user.roles << role created a UserRole on the background) in rails 3, this is not a problem, in rails 4, the presence validation fails because no owner_id exists nor does an owner exist. at that moment, there’s no need to do the uniqueness validation, as it’s the user’s first roles. thus, this fix.
Updated by Dominic Cleal about 9 years ago
- Category set to Rails
- Assignee set to Tom Caspy
- Translation missing: en.field_release set to 71
Updated by Tom Caspy about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 01f0b2317067dd1a5c7d3b61716e4dd6d2648888.
Actions