Makes parent parent assignment work on project form.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2150 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-12-20 13:43:05 +00:00
parent 058e4db223
commit 8de41294c0
5 changed files with 47 additions and 19 deletions
@@ -33,4 +33,8 @@ module ProjectsHelper
]
tabs.select {|tab| User.current.allowed_to?(tab[:action], @project)}
end
def project_hierarchy_collection_for_select(projects)
projects.sort_by(&:lft).collect {|p| [('>' * p.level) + p.name.to_s, p.id]}
end
end