]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7446 fix issue filter widget header
authorStas Vilchik <vilchiks@gmail.com>
Mon, 18 Apr 2016 13:30:55 +0000 (15:30 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 18 Apr 2016 13:30:55 +0000 (15:30 +0200)
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_filter.html.erb
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/project_issue_filter.html.erb

index 2106a53cd55794cad70cc9f81f6164cdd7c5984e..a1aba095983b8812597b80e231bee745eeef637d 100644 (file)
@@ -4,6 +4,9 @@
    filter = Internal.issues.findIssueFilterById(filter_id.to_i)
    distribution_axis = widget_properties['distributionAxis']
    display_mode = widget_properties['displayMode']
+   if display_mode == 'debt'
+     display_mode = 'effort'
+   end
    is_enough_permissions = filter.shared || (current_user && filter.userLogin == current_user.login)
 %>
 
index 0c663b6d77846ae6c2e8d2440db849adcca8fedc..29076b6c0d1350f17a568fcfd3121e8b14d6121c 100644 (file)
@@ -4,6 +4,9 @@
    filter = Internal.issues.findIssueFilterById(filter_id.to_i)
    distribution_axis = widget_properties['distributionAxis']
    display_mode = widget_properties['displayMode']
+   if display_mode == 'debt'
+     display_mode = 'effort'
+   end
    is_enough_permissions = filter.shared || (current_user && filter.userLogin == current_user.login)
 
    if @dashboard_configuration.selected_period?