aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-18 10:18:50 +0200
committerDavid Gageot <david@gageot.net>2012-07-18 10:18:50 +0200
commitcf82d046676cd645f2068e9995abbfced825a022 (patch)
tree2f8423ebe2c8913f4555363bad7aec37ba177c4b /sonar-server
parente0e247b684d77a4522f3b393db86d4501aa27e3a (diff)
downloadsonarqube-cf82d046676cd645f2068e9995abbfced825a022.tar.gz
sonarqube-cf82d046676cd645f2068e9995abbfced825a022.zip
Filter out copy resources
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb
index 9ac91abcbac..f2e8f19a8a3 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb
@@ -30,7 +30,7 @@ module WidgetPropertiesHelper
visible_qualifiers=Java::OrgSonarServerUi::JRubyFacade.getInstance().getQualifiersWithProperty('supportsGlobalDashboards')
visible_qualifiers.each do |qualifier|
- projects = Project.all(:conditions => {:qualifier => qualifier, :enabled => true})
+ projects = Project.all(:conditions => {:qualifier => qualifier, :enabled => true, :copy_resource_id => nil})
unless projects.nil? || projects.empty?
sorted_projects = Api::Utils.insensitive_sort(projects, &:name)