From e944fc74df201ec73852add5d2513a4258355e5f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Jan 2009 13:52:40 +0000 Subject: Render the project list as a tree on Move form. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2315 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 27d00e721..62e5e5787 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -271,7 +271,7 @@ class IssuesController < ApplicationController # find projects to which the user is allowed to move the issue if User.current.admin? # admin is allowed to move issues to any active (visible) project - @allowed_projects = Project.find(:all, :conditions => Project.visible_by(User.current), :order => 'name') + @allowed_projects = Project.find(:all, :conditions => Project.visible_by(User.current)) else User.current.memberships.each {|m| @allowed_projects << m.project if m.role.allowed_to?(:move_issues)} end -- cgit v1.2.3