]> source.dussan.org Git - sonarqube.git/commitdiff
fix display of issues tag cloud widget when period is selected
authorStas Vilchik <vilchiks@gmail.com>
Wed, 20 Jan 2016 11:37:19 +0000 (12:37 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 20 Jan 2016 11:37:19 +0000 (12:37 +0100)
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_tag_cloud.html.erb

index 99012a289e562144e6796a0e2f6e23c4b8793816..b5da73a894b57ea353076ca36f5e6b8c51a3f4e9 100644 (file)
@@ -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 = [