summaryrefslogtreecommitdiffstats
path: root/app/controllers/journals_controller.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2008-12-10 23:44:22 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2008-12-10 23:44:22 +0000
commitda98386bf748abde381c5681d70f9a5ea32fadee (patch)
tree0692627d85f95dda2757e2a91078065df403b6ac /app/controllers/journals_controller.rb
parentf02717ab94b3a91ef734b7923e27271ef63dfee0 (diff)
downloadredmine-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.rb1
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' }