]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4630 While creating a global dashboard,
authorJulien HENRY <julien.henry@sonarsource.com>
Wed, 4 Sep 2013 14:26:56 +0000 (16:26 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 4 Sep 2013 14:26:56 +0000 (16:26 +0200)
a project dashboard might be created instead in some cases

sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb

index bd86055c0d54b4424a8b31eb2330c565936ad307..12a7b35dced13076b69c5146ae23968357345960 100644 (file)
@@ -53,6 +53,7 @@ class DashboardsController < ApplicationController
 
   def create
     verify_post_request
+    @global = !params[:resource]
     @dashboard = Dashboard.new()
     @dashboard.user_id = current_user.id
     load_dashboard_from_params(@dashboard)