diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-11 13:37:54 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-11 13:37:54 +0000 |
commit | bd980b0ccd13cb60d5afeec9140b878353a9c86a (patch) | |
tree | e0c02bb040c290b6e06c2eaf24761b1d24907dfa /sonar-server | |
parent | be89d5f7baa6ff9267e2a22927e7f7d73e45049d (diff) | |
download | sonarqube-bd980b0ccd13cb60d5afeec9140b878353a9c86a.tar.gz sonarqube-bd980b0ccd13cb60d5afeec9140b878353a9c86a.zip |
fix redirect when adding a widget with a selected category
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 2 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb | 2 |
2 files changed, 2 insertions, 2 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 44030fb548d..b9194b180d7 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 @@ -141,7 +141,7 @@ class DashboardController < ApplicationController def widget_definitions load_widget_definitions(params[:category]) - render :partial => 'dashboard/widget_definitions', :locals => {:dashboard_id => params[:did], :resource_id => params[:rid], :filter_on_category => params[:category]} + render :partial => 'dashboard/widget_definitions', :locals => {:dashboard_id => params[:did], :resource_id => params[:id], :filter_on_category => params[:category]} end private diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb index 504e9f0a33d..75c89a89aa0 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb @@ -28,7 +28,7 @@ function filterWidgets(category){ new Ajax.Updater( 'widget_defs', - '<%= url_for :controller => "dashboard", :action => "widget_definitions", :did => @dashboard.id, :rid => @resource.id -%>&category=' + category, + '<%= url_for :controller => "dashboard", :action => "widget_definitions", :did => @dashboard.id, :id => @resource.id -%>&category=' + category, {asynchronous:true, evalScripts:true}); $('filter-widgets-loading').show(); return false; |