]> source.dussan.org Git - redmine.git/commitdiff
Do not call _before_save hook without saving.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Jan 2012 18:51:40 +0000 (18:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Jan 2012 18:51:40 +0000 (18:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8595 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/timelog_controller.rb

index d50c3d0de4b66e634cdecb3e43cca13ff97e67ae..de7654b2ee310b480d8536c3769fa19fb92db8f5 100644 (file)
@@ -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