From 7ce643648b781666ea5a51c42210dfee4b4a0be6 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 21 Feb 2013 14:46:21 +0100 Subject: [PATCH] Fix issue when displaying dependencies that will be update that causing to add incoming dependencies to release outgoing dependencies --- .../WEB-INF/app/views/updatecenter/updates.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb index caa6b35d7e6..05a59b023a3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb @@ -52,10 +52,10 @@ function upgradePlugin(key) { %> <% if @last_compatible[plugin.getKey()] %> - - <% release = plugin.getRelease(@last_compatible[plugin.getKey()]) - releases = release.outgoingDependencies + release.incomingDependencies %> - <% releases.each_with_index do |dep_release, index| %> + <% + version = @last_compatible[plugin.getKey()] + dependencies = @updates_by_plugin[plugin].last.dependencies.select {|dependency| dependency.master} + dependencies.each_with_index do |dependency, index| %> @@ -65,7 +65,7 @@ function upgradePlugin(key) {   <% end %> - <%= dep_release.artifact.name -%> : <%= dep_release.artifact.description -%> + <%= dependency.artifact.name -%> : <%= dependency.artifact.description -%> <% end %> @@ -73,7 +73,7 @@ function upgradePlugin(key) { -
+
-- 2.39.5