From e47b2d663615a69a7f40e94f767f15596c9268f7 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 11 Oct 2012 14:08:46 +0200 Subject: [PATCH] Fix warning --- .../main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb index 08f0b5a9291..5d570c4964a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb @@ -119,7 +119,7 @@ class DashboardController < ApplicationController prop.save! end end - widget.resource_id=Project.by_key(params[:resource_id]).id if params[:resource_id] + widget.resource_id=Project.by_key(params[:resource_id]).id if params[:resource_id].present? widget.configured=true widget.save! render :update do |page| -- 2.39.5