Project

General

Profile

Actions

Bug #11965

closed

Host group w/config group clone reports four "can't be blank" validation errors for name

Added by Dominic Cleal over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host groups
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Dominic Cleal over 8 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.

Actions #2

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2821 added
  • Pull request deleted ()
Actions #3

Updated by Tom Caspy over 8 years ago

  • Assignee set to Tom Caspy
Actions #4

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 71
Actions #5

Updated by Tom Caspy over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF