Index: app/controllers/timelog_controller.rb =================================================================== --- app/controllers/timelog_controller.rb (revision 4408) +++ app/controllers/timelog_controller.rb (working copy) @@ -109,6 +109,7 @@ def edit (render_403; return) if @time_entry && !@time_entry.editable_by?(User.current) + @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today) @time_entry.attributes = params[:time_entry] call_hook(:controller_timelog_edit_before_save, { :params => params, :time_entry => @time_entry })