From: Simon Brandhof Date: Mon, 20 Jun 2016 11:58:55 +0000 (+0200) Subject: Fix infinite loop in project.r, method ancestor_projects X-Git-Tag: 6.0-RC1~277 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=319ab4107b121f7fc6e9d54e0cf36c46cd2f79fc;p=sonarqube.git Fix infinite loop in project.r, method ancestor_projects --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/project.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/project.rb index 15d50e8682d..90d1931ef84 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/project.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/project.rb @@ -86,7 +86,7 @@ class Project < ActiveRecord::Base # bottom-up array of projects, def ancestor_projects node, nodes = self, [] - nodes << node = node.root while node.root + nodes << node = node.root while node.root_uuid != node.uuid nodes end