]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2399 In differential mode, display reviews until today
authorFabrice Bellingard <bellingard@gmail.com>
Tue, 13 Dec 2011 17:08:36 +0000 (18:08 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Tue, 13 Dec 2011 17:29:53 +0000 (18:29 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/false_positive_reviews.html.erb
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/my_reviews.html.erb
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/project_reviews.html.erb
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/reviews/_reviews_list.html.erb

index 6dcd5a29f2a42b232c61b6983a96a788e608551f..296436c8a12af55518233d8cec60911e7b951a04 100644 (file)
@@ -4,7 +4,7 @@
     
     if @dashboard_configuration.selected_period?
       from_date = @dashboard_configuration.from_datetime
-      to_date = @snapshot.created_at
+      to_date = DateTime.now
     end
 %>
 
index 9e51c9ab19e632e6fc4aa285b32e28e1bcd096e5..e467103072e8385bf4348900a2e9b226427d8e41 100644 (file)
@@ -4,7 +4,7 @@
     
     if @dashboard_configuration.selected_period?
       from_date = @dashboard_configuration.from_datetime
-      to_date = @snapshot.created_at
+      to_date = DateTime.now
     end
 %>
 
index 0f4017e1615accc7cc9fedd9397d4d55df453f94..84a76981c3beec69e1ea9b4f4dc53e37367e3008 100644 (file)
@@ -4,7 +4,7 @@
     
     if @dashboard_configuration.selected_period?
       from_date = @dashboard_configuration.from_datetime
-      to_date = @snapshot.created_at
+      to_date = DateTime.now
     end
 %>
 
index fca5f3cc0a38ecd12c22c89968429b83b87dd681..4a573f3117b6b5e7c2b235159acbde7213428921 100644 (file)
@@ -5,7 +5,7 @@
     if @dashboard_configuration.selected_period?
       from_date = dashboard_configuration.from_datetime
       options['from'] = from_date
-      to_date = @snapshot.created_at
+      to_date = DateTime.now
       options['to'] = to_date
     end
     reviews = Review.search(options)
index 3e00d19ce67334d007649c6e223ffe83b2743eca..4652fa0e99b0cc124e728086ef37b86283d8aded 100644 (file)
@@ -15,7 +15,7 @@
     if @dashboard_configuration.selected_period?
       from_date = @dashboard_configuration.from_datetime
       options['from'] = from_date
-      to_date = @snapshot.created_at
+      to_date = DateTime.now
       options['to'] = to_date
     end
     reviews = Review.search(options)