]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5718 Fix display of widget on global page
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 7 Nov 2014 10:30:06 +0000 (11:30 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 7 Nov 2014 10:30:06 +0000 (11:30 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb

index 5cf9c869f61e35df0a7ea071b484f67604002688..6ff8884370cc53eb60758db4641a840b5095ba4b 100644 (file)
@@ -2,10 +2,12 @@
    if current_user && (!@project || has_role?(:user, @project))
 
      search_options = {}
-     if @project.qualifier == 'TRK'
-       search_options['projectUuids'] = @project.uuid
-     else
-       search_options['componentRootUuids'] = @project.uuid
+     if @project
+       if @project.qualifier == 'TRK'
+         search_options['projectUuids'] = @project.uuid
+       else
+         search_options['componentRootUuids'] = @project.uuid
+       end
      end
      search_options['resolved'] = 'false'
      search_options['assignees'] = current_user.login