Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
ea3ff66b
Commit
ea3ff66b
authored
Mar 06, 2012
by
Jean-Philippe Lang
Committed by
Holger Just
Apr 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use safe_attributes= just like in #create. (#922)
parent
ee99b2de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
projects_controller.rb
app/controllers/projects_controller.rb
+2
-1
No files found.
app/controllers/projects_controller.rb
View file @
ea3ff66b
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment