##// END OF EJS Templates
Use #safe_attributes= for building new time entry....
Jean-Philippe Lang -
r14405:3d513cae6ee9
parent child
Show More
@@ -376,7 +376,7 class IssuesController < ApplicationController
376 def update_issue_from_params
376 def update_issue_from_params
377 @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
377 @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
378 if params[:time_entry]
378 if params[:time_entry]
379 @time_entry.attributes = params[:time_entry]
379 @time_entry.safe_attributes = params[:time_entry]
380 end
380 end
381
381
382 @issue.init_journal(User.current)
382 @issue.init_journal(User.current)
General Comments 0
You need to be logged in to leave comments. Login now