Skip to content

Commit

Permalink
Add case insensitivity when validating uniqueness of name of new group
Browse files Browse the repository at this point in the history
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1537171

Add case insensitivity when validating uniqueness of name of a new group within a region.
  • Loading branch information
Hilda Stastna committed Mar 23, 2018
1 parent 388f266 commit db23d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MiqGroup < ApplicationRecord

delegate :self_service?, :limited_self_service?, :disallowed_roles, :to => :miq_user_role, :allow_nil => true

validates :description, :presence => true, :unique_within_region => true
validates :description, :presence => true, :unique_within_region => { :match_case => false }
validate :validate_default_tenant, :on => :update, :if => :tenant_id_changed?
before_destroy :ensure_can_be_destroyed
after_destroy :reset_current_group_for_users
Expand Down

0 comments on commit db23d63

Please sign in to comment.