summaryrefslogtreecommitdiffstats
path: root/app/controllers/context_menus_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-08 13:31:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-08 13:31:22 +0000
commite74d4ecf5fa73690c91188a70425cc2d4640ecd9 (patch)
treeaa3e3329825a5db17a63445a88bd4123fb0a44b1 /app/controllers/context_menus_controller.rb
parent23a1ef543fcf40af6b48a5cf1f164d8e82e3d419 (diff)
downloadredmine-e74d4ecf5fa73690c91188a70425cc2d4640ecd9.tar.gz
redmine-e74d4ecf5fa73690c91188a70425cc2d4640ecd9.zip
Compute issue ids array only once.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9962 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/context_menus_controller.rb')
-rw-r--r--app/controllers/context_menus_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb
index 329c0d0c1..98b232323 100644
--- a/app/controllers/context_menus_controller.rb
+++ b/app/controllers/context_menus_controller.rb
@@ -24,6 +24,7 @@ class ContextMenusController < ApplicationController
if (@issues.size == 1)
@issue = @issues.first
end
+ @issue_ids = @issues.map(&:id).sort
@allowed_statuses = @issues.map(&:new_statuses_allowed_to).reduce(:&)
@projects = @issues.collect(&:project).compact.uniq