From: Fabrice Bellingard Date: Tue, 13 Dec 2011 17:08:36 +0000 (+0100) Subject: SONAR-2399 In differential mode, display reviews until today X-Git-Tag: 2.13~119 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d1fa179998175c25b18547a3efbdde696b55c93a;p=sonarqube.git SONAR-2399 In differential mode, display reviews until today --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/false_positive_reviews.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/false_positive_reviews.html.erb index 6dcd5a29f2a..296436c8a12 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/false_positive_reviews.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/false_positive_reviews.html.erb @@ -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 %> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/my_reviews.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/my_reviews.html.erb index 9e51c9ab19e..e467103072e 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/my_reviews.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/my_reviews.html.erb @@ -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 %> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/project_reviews.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/project_reviews.html.erb index 0f4017e1615..84a76981c3b 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/project_reviews.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/project_reviews.html.erb @@ -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 %> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb index fca5f3cc0a3..4a573f3117b 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb @@ -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) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/reviews/_reviews_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/reviews/_reviews_list.html.erb index 3e00d19ce67..4652fa0e99b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/reviews/_reviews_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/reviews/_reviews_list.html.erb @@ -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)