diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-11 14:08:46 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-11 14:08:59 +0200 |
commit | e47b2d663615a69a7f40e94f767f15596c9268f7 (patch) | |
tree | 0e86ed7f9d846a64f2003eb2903d230d6e4a6571 /sonar-server/src | |
parent | ec050ae02ab8afd1a58fdcbddda4cafc905f10ff (diff) | |
download | sonarqube-e47b2d663615a69a7f40e94f767f15596c9268f7.tar.gz sonarqube-e47b2d663615a69a7f40e94f767f15596c9268f7.zip |
Fix warning
Diffstat (limited to 'sonar-server/src')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 2 |
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| |