comparison app/controllers/projects_controller.rb @ 929:5f33065ddc4b redmine-1.3

Update to Redmine SVN rev 9414 on 1.3-stable branch
author Chris Cannam
date Wed, 27 Jun 2012 14:54:18 +0100
parents cbb26bc654de
children ec1c49528f36 433d4f72a19b
comparison
equal deleted inserted replaced
909:cbb26bc654de 929:5f33065ddc4b
64 end 64 end
65 65
66 def new 66 def new
67 @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") 67 @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position")
68 @trackers = Tracker.all 68 @trackers = Tracker.all
69 @project = Project.new(params[:project]) 69 @project = Project.new
70 @project.safe_attributes = params[:project]
70 end 71 end
71 72
72 verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed } 73 verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed }
73 def create 74 def create
74 @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") 75 @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position")