diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-12-23 15:36:19 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-12-23 15:36:19 +0100 |
commit | 6ab80bf70757f2ac76828d98ffa9f9e8239ef91b (patch) | |
tree | e7eb7da50279578147eb2358d7ff45b8e65787b0 | |
parent | f886a3b9ad2e73588fc02de3cf491b085010071a (diff) | |
download | sonarqube-6ab80bf70757f2ac76828d98ffa9f9e8239ef91b.tar.gz sonarqube-6ab80bf70757f2ac76828d98ffa9f9e8239ef91b.zip |
Fix configuration of dashboard when the plugin defining a widget has been uninstalled.
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
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 54b9856d40d..0ee8b003770 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 @@ -54,7 +54,7 @@ <div class="column-handle" style="display: none"></div> <% - @dashboard.widgets.select { |widget| widget.column_index==index }.sort_by { |widget| widget.row_index }.each do |widget| + @dashboard.widgets.select { |widget| widget.column_index==index && widget.java_definition}.sort_by { |widget| widget.row_index }.each do |widget| %> <div class="block" id="block_<%= widget.id -%>"> <%= render :partial => 'dashboard/configure_widget', :locals => {:widget => widget} %> |