@@ -197,6 +197,9 class TimelogController < ApplicationController | |||||
197 | render_403 and return if @time_entry && !@time_entry.editable_by?(User.current) |
|
197 | render_403 and return if @time_entry && !@time_entry.editable_by?(User.current) | |
198 | @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => Date.today) |
|
198 | @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => Date.today) | |
199 | @time_entry.attributes = params[:time_entry] |
|
199 | @time_entry.attributes = params[:time_entry] | |
|
200 | ||||
|
201 | call_hook(:controller_timelog_edit_before_save, { :params => params, :time_entry => @time_entry }) | |||
|
202 | ||||
200 | if request.post? and @time_entry.save |
|
203 | if request.post? and @time_entry.save | |
201 | flash[:notice] = l(:notice_successful_update) |
|
204 | flash[:notice] = l(:notice_successful_update) | |
202 | redirect_back_or_default :action => 'details', :project_id => @time_entry.project |
|
205 | redirect_back_or_default :action => 'details', :project_id => @time_entry.project |
General Comments 0
You need to be logged in to leave comments.
Login now