From fefb1a38eb6a7f1794430d9860684091d4ac7d24 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 4 Jun 2013 16:33:29 +0200 Subject: [PATCH] SONAR-3755 Fix problem when setting aciton plan on issue --- .../src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb | 2 +- .../src/main/webapp/WEB-INF/app/views/issues/_list.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb index 894eb63edd6..67eba2e5482 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb @@ -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? diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb index 75fb3bc95a9..4816f9a4160 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb @@ -83,7 +83,7 @@ <% if component %> <%= h component.longName() -%> <% else %> - <%= h issue.componentKey() %> + <%= h issue.componentKey() %> <% end %> -- 2.39.5