##// END OF EJS Templates
Do not call _before_save hook without saving....
Jean-Philippe Lang -
r8475:919e686e93ec
parent child
Show More
@@ -115,8 +115,6 class TimelogController < ApplicationController
115 115 def new
116 116 @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today)
117 117 @time_entry.attributes = params[:time_entry]
118
119 call_hook(:controller_timelog_edit_before_save, { :params => params, :time_entry => @time_entry })
120 118 render :action => 'edit'
121 119 end
122 120
General Comments 0
You need to be logged in to leave comments. Login now