From 035fc2ae4a1552e057ed8caddcabf3d787baa62b Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 20 Jan 2016 12:37:19 +0100 Subject: [PATCH] fix display of issues tag cloud widget when period is selected --- .../sonar/server/dashboard/widget/issue_tag_cloud.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [ -- 2.39.5