]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3755 Fix problem when setting aciton plan on issue
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 4 Jun 2013 14:33:29 +0000 (16:33 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 4 Jun 2013 14:33:29 +0000 (16:33 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb

index 894eb63edd69e52f0b5d36f1145be087bd9ed59a..67eba2e5482dc140b63c49dc35030cf6e2925b7d 100644 (file)
@@ -1,6 +1,6 @@
 <%
    plans_select_box_id = "plans-#{params[:issue]}"
-   plans = Internal.issues.findOpenActionPlans(@issue.componentKey())
+   plans = Internal.issues.findOpenActionPlans(@issue_result.project(@issue).key())
 
 
    if plans.empty?
index 75fb3bc95a935f7af301031cff3b6ae9527f067a..4816f9a4160702d170fe44bcf24d479eeacbe2fe 100644 (file)
@@ -83,7 +83,7 @@
             <% if component %>
               <%= h component.longName() -%>
             <% else %>
-              <del><%= h  issue.componentKey() %></del>
+              <del><%= h issue.componentKey() %></del>
             <% end %>
           </td>
           <td>