From: Stas Vilchik Date: Wed, 20 Jan 2016 11:37:19 +0000 (+0100) Subject: fix display of issues tag cloud widget when period is selected X-Git-Tag: 5.4-M9~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=035fc2ae4a1552e057ed8caddcabf3d787baa62b;p=sonarqube.git fix display of issues tag cloud widget when period is selected --- diff --git a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_tag_cloud.html.erb b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_tag_cloud.html.erb index 99012a289e5..b5da73a894b 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_tag_cloud.html.erb +++ b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_tag_cloud.html.erb @@ -10,7 +10,7 @@ search_options['componentUuids'] = @project.uuid end if @dashboard_configuration.selected_period? - search_options['createdAfter'] = @snapshot.period_datetime(@dashboard_configuration.period_index).strftime('%FT%T%z') + search_options['createdAfter'] = @snapshot.period_datetime(@dashboard_configuration.period_index).strftime('%Y-%m-%d') end title = message('widget.issue_tag_cloud.title') @@ -30,7 +30,7 @@ (function () { var createdAfter = ''; <% if @dashboard_configuration.selected_period? -%> - createdAfter = moment('<%= search_options['createdAfter'] -%>').format('YYYY-MM-DD'); + createdAfter = '<%= search_options['createdAfter'] -%>'; <% end -%> var queryParams = [