]> source.dussan.org Git - redmine.git/commitdiff
Use #safe_attributes= for building new time entry.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 1 Nov 2015 08:16:10 +0000 (08:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 1 Nov 2015 08:16:10 +0000 (08:16 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14787 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index e8e1e3c05fe015fe0ece7661bcb78c2b1d6667ad..2abe13ae8a11ea1977b195d2d3dac8b2bd45ea62 100644 (file)
@@ -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)