Bug #11965
closed
Host group w/config group clone reports four "can't be blank" validation errors for name
Added by Dominic Cleal over 9 years ago.
Updated over 6 years ago.
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.
- 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.
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2821 added
- Pull request deleted (
)
- Assignee set to Tom Caspy
- Translation missing: en.field_release set to 71
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF