aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-05-13 17:40:57 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-05-13 17:41:13 +0200
commitd0a41de6bfd7033e6897396e9cbff609c5d5911b (patch)
tree7f6a4f6af90e4e033d89296f9a0a316f3e06ecf7
parent5d07abe50d4055c03ea35568efc2c194788e627b (diff)
downloadsonarqube-d0a41de6bfd7033e6897396e9cbff609c5d5911b.tar.gz
sonarqube-d0a41de6bfd7033e6897396e9cbff609c5d5911b.zip
SONAR-4282 Fix issue when editing a action plan
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_action_plans_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_action_plans_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_action_plans_controller.rb
index 2992532a24e..17b673f210b 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_action_plans_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_action_plans_controller.rb
@@ -26,8 +26,6 @@ class IssuesActionPlansController < ApplicationController
def index
load_action_plans()
- users = Api.users.find('logins' => (@open_action_plans + @closed_action_plans).collect {|action_plan| action_plan.userLogin()}.join(","))
- @users = Hash[users.collect { |user| [user.login(), user.name()] }]
end
def edit
@@ -88,6 +86,8 @@ class IssuesActionPlansController < ApplicationController
def load_action_plans
@open_action_plans = Internal.issues.findActionPlanStats(@resource.key).select {|plan| plan.status() == 'OPEN'}
@closed_action_plans = Internal.issues.findActionPlanStats(@resource.key).select {|plan| plan.status() == 'CLOSED'}
+ users = Api.users.find('logins' => (@open_action_plans + @closed_action_plans).collect {|action_plan| action_plan.userLogin()}.join(","))
+ @users = Hash[users.collect { |user| [user.login(), user.name()] }]
end
def find_by_key(key)