app/services/katello/applicability/applicable_content_helper.rb in katello-4.0.2.1 vs app/services/katello/applicability/applicable_content_helper.rb in katello-4.0.3
- old
+ new
@@ -90,10 +90,11 @@
# Query for applicable RPM ids
# -> Include all non-modular rpms or rpms that exist within installed module streams
::Katello::ModuleStream.
joins("inner join katello_available_module_streams on
katello_module_streams.name = katello_available_module_streams.name and
- katello_module_streams.stream = katello_available_module_streams.stream").
+ katello_module_streams.stream = katello_available_module_streams.stream and
+ katello_module_streams.context = katello_available_module_streams.context").
joins("inner join katello_host_available_module_streams on
katello_available_module_streams.id = katello_host_available_module_streams.available_module_stream_id").
where("katello_host_available_module_streams.host_id = :content_facet_id and
katello_host_available_module_streams.status = 'enabled'",
:content_facet_id => self.content_facet.host.id).select(:id)