aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb2
1 files changed, 1 insertions, 1 deletions
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|