diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-09 18:51:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-09 18:51:40 +0000 |
commit | 919e686e93ecf1fbf4afd0ad32398fd95b368876 (patch) | |
tree | 6030051593ec371f4535c996bc0fc8ea4ada8eeb /app/controllers/timelog_controller.rb | |
parent | 087186ef344886add9fc09a594a43e5842a1c203 (diff) | |
download | redmine-919e686e93ecf1fbf4afd0ad32398fd95b368876.tar.gz redmine-919e686e93ecf1fbf4afd0ad32398fd95b368876.zip |
Do not call _before_save hook without saving.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8595 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r-- | app/controllers/timelog_controller.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index d50c3d0de..de7654b2e 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -115,8 +115,6 @@ class TimelogController < ApplicationController def new @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today) @time_entry.attributes = params[:time_entry] - - call_hook(:controller_timelog_edit_before_save, { :params => params, :time_entry => @time_entry }) render :action => 'edit' end |