Defect #6904 » timelog_controller.patch
app/controllers/timelog_controller.rb (working copy) | ||
---|---|---|
109 | 109 |
|
110 | 110 |
def edit |
111 | 111 |
(render_403; return) if @time_entry && !@time_entry.editable_by?(User.current) |
112 |
@time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today) |
|
112 | 113 |
@time_entry.attributes = params[:time_entry] |
113 | 114 |
|
114 | 115 |
call_hook(:controller_timelog_edit_before_save, { :params => params, :time_entry => @time_entry }) |
- « Previous
- 1
- 2
- Next »