diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-06 19:52:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-06 19:52:10 +0000 |
commit | 0ee1de568697dd7b6d9dcc13fb68932a3f009eb7 (patch) | |
tree | 647e7c7877d39f1ecd076f77795e2e9a20e771e1 /app/controllers | |
parent | d0356fe935330d2c74130572eae5883358d7f997 (diff) | |
download | redmine-0ee1de568697dd7b6d9dcc13fb68932a3f009eb7.tar.gz redmine-0ee1de568697dd7b6d9dcc13fb68932a3f009eb7.zip |
Use safe_attributes= just like in #create.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9135 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 279944ef6..d232319bb 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -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 def create |