aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-12-23 15:36:19 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-12-23 15:36:19 +0100
commit6ab80bf70757f2ac76828d98ffa9f9e8239ef91b (patch)
treee7eb7da50279578147eb2358d7ff45b8e65787b0
parentf886a3b9ad2e73588fc02de3cf491b085010071a (diff)
downloadsonarqube-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.erb2
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} %>