##// 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 def new
115 def new
116 @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today)
116 @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today)
117 @time_entry.attributes = params[:time_entry]
117 @time_entry.attributes = params[:time_entry]
118
119 call_hook(:controller_timelog_edit_before_save, { :params => params, :time_entry => @time_entry })
120 render :action => 'edit'
118 render :action => 'edit'
121 end
119 end
122
120
General Comments 0
You need to be logged in to leave comments. Login now