Browse Source

Use safe_attributes= just like in #create.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9135 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.4.0
Jean-Philippe Lang 12 years ago
parent
commit
0ee1de5686
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      app/controllers/projects_controller.rb

+ 2
- 1
app/controllers/projects_controller.rb View 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

def create

Loading…
Cancel
Save