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
204 204
      user = User.current
205 205
    end
206 206
    @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => user, :spent_on => Date.today)
207
    @time_entry.attributes = params[:time_entry]
207
    @time_entry.send(:attributes=, params[:time_entry], false)
208 208
    if request.post? and @time_entry.save
209 209
      flash[:notice] = l(:notice_successful_update)
210 210
      redirect_back_or_default :action => 'details', :project_id => @time_entry.project
(5-5/21)