diff options
author | Go MAEDA <maeda@farend.jp> | 2018-12-15 21:40:09 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-12-15 21:40:09 +0000 |
commit | 7d827b1389bf91679c1bcfaacae79fea65e03f12 (patch) | |
tree | 7f5bce8079a8d715aee3199f41c9317ca96b62ac /app/controllers | |
parent | 10eba2878a518d776c1b8f48b810f74fa7a0530d (diff) | |
download | redmine-7d827b1389bf91679c1bcfaacae79fea65e03f12.tar.gz redmine-7d827b1389bf91679c1bcfaacae79fea65e03f12.zip |
Display notice on forum updates (#2635).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17738 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/messages_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 0ba360e9a..99dda31fd 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -63,6 +63,7 @@ class MessagesController < ApplicationController if @message.save call_hook(:controller_messages_new_after_save, { :params => params, :message => @message}) render_attachment_warning_if_needed(@message) + flash[:notice] = l(:notice_successful_create) redirect_to board_message_path(@board, @message) end end @@ -80,6 +81,7 @@ class MessagesController < ApplicationController attachments = Attachment.attach_files(@reply, params[:attachments]) render_attachment_warning_if_needed(@reply) end + flash[:notice] = l(:notice_successful_update) redirect_to board_message_path(@board, @topic, :r => @reply) end @@ -101,6 +103,7 @@ class MessagesController < ApplicationController (render_403; return false) unless @message.destroyable_by?(User.current) r = @message.to_param @message.destroy + flash[:notice] = l(:notice_successful_delete) if @message.parent redirect_to board_message_path(@board, @message.parent, :r => r) else |