diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-02-21 14:46:21 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-02-21 14:46:42 +0100 |
commit | 7ce643648b781666ea5a51c42210dfee4b4a0be6 (patch) | |
tree | 54fc9d88e48ab3f1d2c8872cbe167e25cf726c09 | |
parent | e2904df72ffc0ccd33062708f25349efc8eca5f8 (diff) | |
download | sonarqube-7ce643648b781666ea5a51c42210dfee4b4a0be6.tar.gz sonarqube-7ce643648b781666ea5a51c42210dfee4b4a0be6.zip |
Fix issue when displaying dependencies that will be update that causing to add incoming dependencies to release outgoing dependencies
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb | 12 |
1 files 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| %> <tr class="<%= css -%>"> <td> </td> <td> </td> @@ -65,7 +65,7 @@ function upgradePlugin(key) { <td > </td> <% end %> <td colspan="4"> - <span><%= dep_release.artifact.name -%></span> : <span><%= dep_release.artifact.description -%></span> + <span><%= dependency.artifact.name -%></span> : <span><%= dependency.artifact.description -%></span> </td> </tr> <% end %> @@ -73,7 +73,7 @@ function upgradePlugin(key) { <tr class="<%= css -%>"> <td> </td> <td colspan="5"> - <form method="post" id="upgrade-form-<%= plugin.getKey() -%>" action="<%= ApplicationController.root_context -%>/updatecenter/install?from=updates&key=<%= plugin.getKey() -%>&version=<%= @last_compatible[plugin.getKey()] -%>" style="display: inline-block"> + <form method="post" id="upgrade-form-<%= plugin.getKey() -%>" action="<%= ApplicationController.root_context -%>/updatecenter/install?from=updates&key=<%= plugin.getKey() -%>&version=<%= version -%>" style="display: inline-block"> <input type="submit" id="upgrade-submit-<%= plugin.getKey() -%>" value="Upgrade to <%= @last_compatible[plugin.getKey()] -%>" onClick="upgradePlugin('<%= plugin.getKey() -%>');return false;"/> </form> </td> |