Skip to content

Commit

Permalink
Fixes #20995: Reject components from the same CV
Browse files Browse the repository at this point in the history
Validate that components being added to a composite content view are
versions of distinct content views
  • Loading branch information
akofink authored and parthaa committed Sep 25, 2017
1 parent 4aebbb9 commit 30880d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/katello/content_view_component.rb
Expand Up @@ -62,7 +62,7 @@ def ensure_valid_attributes

def attached_content_view_ids
composite_content_view.content_view_components.map do |cvc|
next if cvc.id == self.id
next if cvc == self
if cvc.content_view_version
cvc.content_view_version.content_view_id
else
Expand Down

0 comments on commit 30880d0

Please sign in to comment.