app/models/katello/activation_key.rb in katello-3.10.0 vs app/models/katello/activation_key.rb in katello-3.10.1

- old
+ new

@@ -57,10 +57,11 @@ scoped_search :rename => :environment, :on => :name, :relation => :environment, :complete_value => true scoped_search :rename => :content_view, :on => :name, :relation => :content_view, :complete_value => true scoped_search :on => :content_view_id, :complete_value => true, :only_explicit => true, :validator => ScopedSearch::Validators::INTEGER scoped_search :on => :description, :complete_value => true scoped_search :on => :name, :relation => :subscriptions, :rename => :subscription_name, :complete_value => true, :ext_method => :find_by_subscription_name - scoped_search :on => :id, :relation => :subscriptions, :rename => :subscription_id, :complete_value => true, :ext_method => :find_by_subscription_id + scoped_search :on => :id, :relation => :subscriptions, :rename => :subscription_id, :complete_value => true, + :only_explicit => true, :validator => ScopedSearch::Validators::INTEGER, :ext_method => :find_by_subscription_id def environment_exists if environment_id && environment.nil? errors.add(:environment, _("ID: %s doesn't exist ") % environment_id) elsif !environment.nil? && environment.organization != self.organization