From: Fabrice Bellingard Date: Wed, 31 Aug 2011 07:51:25 +0000 (+0200) Subject: SONAR-2701 Fix bug that can occur when using Views X-Git-Tag: 2.11^2~114 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0d9b5f77b62d8342623295e0e73b3920ea5cf80;p=sonarqube.git SONAR-2701 Fix bug that can occur when using Views --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb index 2f9830e54f9..b8d8bcce8a8 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb @@ -64,11 +64,14 @@ - <% snapshots.each do |snapshot| %> - + <% + snapshots.each do |snapshot| + event = snapshot.event('Version') + %> + <%= l snapshot.created_at.to_date -%>
- <%= snapshot.event('Version').name -%> + <%= event.name unless event==nil -%> <% end %> <% if displaySparkLine %>