diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-11-03 12:09:36 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-11-03 12:10:09 +0100 |
commit | b0d440578ea601e2f3fdc3afe624cfb13a4aea51 (patch) | |
tree | 7d20b1e3fd42ae0b16f43c7e13b7a7ddeada13cc | |
parent | a0d25f507507367e957260d8e357286b736b423e (diff) | |
download | sonarqube-b0d440578ea601e2f3fdc3afe624cfb13a4aea51.tar.gz sonarqube-b0d440578ea601e2f3fdc3afe624cfb13a4aea51.zip |
SONAR-2733 Fix bug in the duplication tab
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb index e8e3d14dc29..cf399666698 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb @@ -201,7 +201,7 @@ class ResourceController < ApplicationController @duplication_groups = [] if duplications_data && duplications_data.measure_data && duplications_data.measure_data.data dups = Document.new duplications_data.measure_data.data.to_s - if (XPath.match(dups, "//g").size() > 1) + if (XPath.match(dups, "//g").size() > 0) parse_duplications(dups, @duplication_groups) else parse_duplications_old_format(dups, @duplication_groups) |