Browse Source

Use #safe_attributes= for building new time entry.

git-svn-id: http://svn.redmine.org/redmine/trunk@14787 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.2.0
Jean-Philippe Lang 8 years ago
parent
commit
3d513cae6e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/controllers/issues_controller.rb

+ 1
- 1
app/controllers/issues_controller.rb View 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)

Loading…
Cancel
Save