Skip to content

Commit

Permalink
Fix range support matching for products with children
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleex255 committed Jun 25, 2021
1 parent e961160 commit a8a5bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PolicyPlus/PolicyProcessing.vb
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
Dim subproduct = SupportEntry.Product.Children.FirstOrDefault(Function(p) p.RawProduct.Version = version)
If subproduct Is Nothing Then Continue For
If Products.Contains(subproduct) Then Return True
If subproduct.Children IsNot Nothing Then Return subproduct.Children.Any(Function(p) Products.Contains(p))
If subproduct.Children IsNot Nothing AndAlso subproduct.Children.Any(Function(p) Products.Contains(p)) Then Return True
Next
Return False
End Function
Expand Down

0 comments on commit a8a5bf9

Please sign in to comment.