mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
Use #safe_attributes= for building new time entry.
git-svn-id: http://svn.redmine.org/redmine/trunk@14787 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -376,7 +376,7 @@ class IssuesController < ApplicationController
|
|||||||
def update_issue_from_params
|
def update_issue_from_params
|
||||||
@time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
|
@time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
|
||||||
if params[:time_entry]
|
if params[:time_entry]
|
||||||
@time_entry.attributes = params[:time_entry]
|
@time_entry.safe_attributes = params[:time_entry]
|
||||||
end
|
end
|
||||||
|
|
||||||
@issue.init_journal(User.current)
|
@issue.init_journal(User.current)
|
||||||
|
|||||||
Reference in New Issue
Block a user