From: Jean-Philippe Lang Date: Mon, 9 Jan 2012 18:51:40 +0000 (+0000) Subject: Do not call _before_save hook without saving. X-Git-Tag: 1.4.0~697 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=919e686e93ecf1fbf4afd0ad32398fd95b368876;p=redmine.git 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 --- 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