From 53f0390911fdd991aa4e04023c609023f449f302 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 4 Sep 2013 16:26:56 +0200 Subject: [PATCH] SONAR-4630 While creating a global dashboard, a project dashboard might be created instead in some cases --- .../main/webapp/WEB-INF/app/controllers/dashboards_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb index bd86055c0d5..12a7b35dced 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb @@ -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) -- 2.39.5