]> source.dussan.org Git - redmine.git/commitdiff
Merged r9135 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Mar 2012 18:41:22 +0000 (18:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Mar 2012 18:41:22 +0000 (18:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@9157 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index c765556e92cbb40eeaf83771842b0a45b0287eea..da66e640c75f64e21686664e2b5a3be2c2d3f576 100644 (file)
@@ -66,7 +66,8 @@ class ProjectsController < ApplicationController
   def new
     @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position")
     @trackers = Tracker.all
-    @project = Project.new(params[:project])
+    @project = Project.new
+    @project.safe_attributes = params[:project]
   end
 
   verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed }