diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-15 08:56:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-15 08:56:31 +0000 |
commit | 4967f10356ea15f996376839a81e4f0e4947e53c (patch) | |
tree | 2af8f7846af3f287df0160a257428a73c6acae32 /app/controllers/projects_controller.rb | |
parent | f2a058f8cf043d42f0ba8a007d807032a84545b0 (diff) | |
download | redmine-4967f10356ea15f996376839a81e4f0e4947e53c.tar.gz redmine-4967f10356ea15f996376839a81e4f0e4947e53c.zip |
Project modules are checked (default) when creating a project.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@730 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 710b6c188..958c35d9a 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -60,6 +60,7 @@ class ProjectsController < ApplicationController @custom_fields = IssueCustomField.find(:all) @root_projects = Project.find(:all, :conditions => "parent_id IS NULL AND status = #{Project::STATUS_ACTIVE}") @project = Project.new(params[:project]) + @project.enabled_module_names = Redmine::AccessControl.available_project_modules if request.get? @custom_values = ProjectCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @project) } else |