Actions
Bug #11965
closedHost group w/config group clone reports four "can't be blank" validation errors for name
Description
When cloning a host group, the "name" field is validated four times leading to an error on the form that says "can't be blank, can't be blank, can't be blank, and can't be blank".
Two of the instances come from a duplicate "validates :name" in hostgroup.rb itself and is easy to fix, but the extra one appears to be coming from something validating the model a second time.
Tested on b0eaf7f.
Updated by Dominic Cleal about 9 years ago
- Subject changed from Host group clone reports four "can't be blank" validation errors for name to Host group w/config group clone reports four "can't be blank" validation errors for name
It looks like it only happens when the host group has an associated config group. Validation appears to go from Hostgroup to ConfigGroup and back to Hostgroup somehow, causing it to run twice.
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/2821 added
- Pull request deleted (
)
Updated by Dominic Cleal about 9 years ago
- 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 5f7e1ee446bff02d49e0085829edf23a8f29c955.
Actions