From c0d9b5f77b62d8342623295e0e73b3920ea5cf80 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 31 Aug 2011 09:51:25 +0200 Subject: [PATCH] SONAR-2701 Fix bug that can occur when using Views --- .../org/sonar/plugins/core/widgets/time_machine.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 %> -- 2.39.5