app/models/katello/activation_key.rb in katello-3.16.2 vs app/models/katello/activation_key.rb in katello-3.17.0.rc1

- old
+ new

@@ -102,10 +102,10 @@ Pool.where(:cp_id => available_pools, :subscription_id => Subscription.subscribable) end def products - Katello::Product.joins(:pools => :activation_keys).where("#{Katello::ActivationKey.table_name}.id" => self.id).enabled.uniq + Katello::Product.distinct.joins(:pools => :activation_keys).where("#{Katello::ActivationKey.table_name}.id" => self.id).enabled.sort end def valid_content_override_label?(content_label) self.available_content.map(&:content).any? { |content| content.label == content_label } end