Skip to content

Commit

Permalink
Fixes #33855 - Allow adding filter on same RPM name with different ar…
Browse files Browse the repository at this point in the history
…chitectures (#9767)
  • Loading branch information
sjha4 committed Nov 11, 2021
1 parent 2079832 commit 92d6184
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/katello/content_view_package_filter_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def ensure_unique_attributes
:version => self.version,
:content_view_filter_id => self.content_view_filter_id,
:min_version => self.min_version,
:max_version => self.max_version)
:max_version => self.max_version,
:architecture => self.architecture)
other = other.where.not(:id => self.id) if self.id
if other.exists?
errors.add(:base, "This package filter rule already exists.")
Expand Down

0 comments on commit 92d6184

Please sign in to comment.