From b0d440578ea601e2f3fdc3afe624cfb13a4aea51 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 3 Nov 2011 12:09:36 +0100 Subject: SONAR-2733 Fix bug in the duplication tab --- .../src/main/webapp/WEB-INF/app/controllers/resource_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3