From e74d4ecf5fa73690c91188a70425cc2d4640ecd9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 8 Jul 2012 13:31:22 +0000 Subject: Compute issue ids array only once. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9962 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/context_menus_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers/context_menus_controller.rb') 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 -- cgit v1.2.3