summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-07 12:57:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-07 12:57:13 +0000
commitc164211c3f357dcd2c607bd014c3b0ed86108098 (patch)
tree44ca832e206bcca2e629d9f09119a05f2b1e08fe /app
parent14267311aac655d53805209c97285a31f0111cac (diff)
downloadredmine-c164211c3f357dcd2c607bd014c3b0ed86108098.tar.gz
redmine-c164211c3f357dcd2c607bd014c3b0ed86108098.zip
Render projects as a tree in the project select field.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8534 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb
index fdfcfdda4..4aab69a64 100644
--- a/app/views/issues/_form.html.erb
+++ b/app/views/issues/_form.html.erb
@@ -8,7 +8,7 @@
<% end %>
<% if !@issue.new_record? && @issue.safe_attribute?('project_id') %>
-<p><%= f.select :project_id, Issue.allowed_target_projects_on_move.collect {|t| [t.name, t.id]}, :required => true %></p>
+<p><%= f.select :project_id, project_tree_options_for_select(Issue.allowed_target_projects_on_move, :selected => @issue.project), :required => true %></p>
<%= observe_field :issue_project_id, :url => project_issue_form_path(@project, :id => @issue, :project_change => '1'),
:with => "Form.serialize('issue-form')" %>
<% end %>