Skip to content

Commit

Permalink
Merge pull request #3346 from adrianschroeter/master
Browse files Browse the repository at this point in the history
[api] fix listing of new products via project expand
  • Loading branch information
ChrisBr committed Jul 4, 2017
2 parents e7af4b9 + c29eeb3 commit 5088f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ def expand_all_packages(packages = [], project_map = {}, package_map = {})
# this function is making the products uniq
def expand_all_products
p_map = Hash.new
products = Product.joins(:package).where("packages.project_id = ? and packages.name = '_product'", id).to_a
products = Product.all_products( self ).to_a
products.each { |p| p_map[p.cpe] = 1 } # existing packages map
# second path, all packages from indirect linked projects
linking_to.each do |lp|
Expand Down

0 comments on commit 5088f59

Please sign in to comment.