Browse Source

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
tags/0.9.0
Jean-Philippe Lang 15 years ago
parent
commit
e944fc74df
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/controllers/issues_controller.rb
  2. 1
    1
      app/views/issues/move.rhtml

+ 1
- 1
app/controllers/issues_controller.rb View File

@@ -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

+ 1
- 1
app/views/issues/move.rhtml View File

@@ -8,7 +8,7 @@
<div class="box tabular">
<p><label for="new_project_id"><%=l(:field_project)%>:</label>
<%= select_tag "new_project_id",
options_from_collection_for_select(@allowed_projects, 'id', 'name', @target_project.id),
project_tree_options_for_select(@allowed_projects, :selected => @target_project),
:onchange => remote_function(:url => { :action => 'move' },
:method => :get,
:update => 'content',

Loading…
Cancel
Save