Use safe_attributes= just like in #create. (#922)

pull/41/head
Jean-Philippe Lang 13 years ago committed by Martin Linkhorst
parent 676bf0f751
commit ff5472e6f7
  1. 3
      app/controllers/projects_controller.rb

@ -59,7 +59,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 }

Loading…
Cancel
Save