diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2008-12-10 23:44:22 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2008-12-10 23:44:22 +0000 |
commit | da98386bf748abde381c5681d70f9a5ea32fadee (patch) | |
tree | 0692627d85f95dda2757e2a91078065df403b6ac /app/controllers/journals_controller.rb | |
parent | f02717ab94b3a91ef734b7923e27271ef63dfee0 (diff) | |
download | redmine-da98386bf748abde381c5681d70f9a5ea32fadee.tar.gz redmine-da98386bf748abde381c5681d70f9a5ea32fadee.zip |
Added plugin hooks around Journal editing
* :controller_journals_edit_post
* :view_journals_notes_form_after_notes
* :view_journals_update_rjs_bottom
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2121 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/journals_controller.rb')
-rw-r--r-- | app/controllers/journals_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index 6df54f098..d479855f2 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -22,6 +22,7 @@ class JournalsController < ApplicationController if request.post? @journal.update_attributes(:notes => params[:notes]) if params[:notes] @journal.destroy if @journal.details.empty? && @journal.notes.blank? + call_hook(:controller_journals_edit_post, { :journal => @journal, :params => params}) respond_to do |format| format.html { redirect_to :controller => 'issues', :action => 'show', :id => @journal.journalized_id } format.js { render :action => 'update' } |