Project

General

Profile

Feature #9726 » ADD_CONTROLLER_TIMELOG_EDIT_BEFORE_SAVE_HOOK_TO_ISSUES_CONTROLLER.diff

Proposed hook addition - Max Haventon, 2011-12-05 19:53

View differences:

app/controllers/issues_controller.rb (revision 20)
123 123
    @edit_allowed = User.current.allowed_to?(:edit_issues, @project)
124 124
    @priorities = IssuePriority.active
125 125
    @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
126
    call_hook(:controller_timelog_edit_before_save, { :time_entry => @time_entry })
126 127
    respond_to do |format|
127 128
      format.html { render :template => 'issues/show' }
128 129
      format.api
(1-1/2)