Feature #9726 » ADD_CONTROLLER_TIMELOG_EDIT_BEFORE_SAVE_HOOK_TO_ISSUES_CONTROLLER.diff
| app/controllers/issues_controller.rb (revision 20) | ||
|---|---|---|
|
@edit_allowed = User.current.allowed_to?(:edit_issues, @project)
|
||
|
@priorities = IssuePriority.active
|
||
|
@time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
|
||
|
call_hook(:controller_timelog_edit_before_save, { :time_entry => @time_entry })
|
||
|
respond_to do |format|
|
||
|
format.html { render :template => 'issues/show' }
|
||
|
format.api
|
||