Project

General

Profile

Feature #3848 » 0003-Allow-to-change-the-owner-a-protected-attribute-of-a.patch

Cedric VINCENT, 2009-09-21 16:48

View differences:

app/controllers/timelog_controller.rb
user = User.current
end
@time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => user, :spent_on => Date.today)
@time_entry.attributes = params[:time_entry]
@time_entry.send(:attributes=, params[:time_entry], false)
if request.post? and @time_entry.save
flash[:notice] = l(:notice_successful_update)
redirect_back_or_default :action => 'details', :project_id => @time_entry.project
(5-5/21)