diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-01 08:16:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-01 08:16:10 +0000 |
commit | 3d513cae6ee96d0ce6c10b5068f91a6df10999d3 (patch) | |
tree | 451654abc7dce33eb92e9bea7ac961f249721310 /app/controllers | |
parent | 9178d4748f19adee08e5b9d58ea1176836249eb6 (diff) | |
download | redmine-3d513cae6ee96d0ce6c10b5068f91a6df10999d3.tar.gz redmine-3d513cae6ee96d0ce6c10b5068f91a6df10999d3.zip |
Use #safe_attributes= for building new time entry.
git-svn-id: http://svn.redmine.org/redmine/trunk@14787 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index e8e1e3c05..2abe13ae8 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -376,7 +376,7 @@ class IssuesController < ApplicationController def update_issue_from_params @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) if params[:time_entry] - @time_entry.attributes = params[:time_entry] + @time_entry.safe_attributes = params[:time_entry] end @issue.init_journal(User.current) |