theforeman/foreman — pull request #1235 by neoseele (2014-02-13 03:02:51+00:00)
Title: fixes: #3596 Validation failed: User has this hostgroup already

Fixed the code ordering issue that triggers bug #3596

http://projects.theforeman.org/issues/3596

the bug is triggered when a non-admin user (with "Automatically add new host groups to this use" ticked) creates a new host group.