@@ -271,7 +271,7 class IssuesController < ApplicationController | |||
|
271 | 271 | # find projects to which the user is allowed to move the issue |
|
272 | 272 | if User.current.admin? |
|
273 | 273 | # admin is allowed to move issues to any active (visible) project |
|
274 |
@allowed_projects = Project.find(:all, :conditions => Project.visible_by(User.current) |
|
|
274 | @allowed_projects = Project.find(:all, :conditions => Project.visible_by(User.current)) | |
|
275 | 275 | else |
|
276 | 276 | User.current.memberships.each {|m| @allowed_projects << m.project if m.role.allowed_to?(:move_issues)} |
|
277 | 277 | end |
@@ -8,7 +8,7 | |||
|
8 | 8 | <div class="box tabular"> |
|
9 | 9 | <p><label for="new_project_id"><%=l(:field_project)%>:</label> |
|
10 | 10 | <%= select_tag "new_project_id", |
|
11 |
|
|
|
11 | project_tree_options_for_select(@allowed_projects, :selected => @target_project), | |
|
12 | 12 | :onchange => remote_function(:url => { :action => 'move' }, |
|
13 | 13 | :method => :get, |
|
14 | 14 | :update => 'content', |
General Comments 0
You need to be logged in to leave comments.
Login now