From 7d827b1389bf91679c1bcfaacae79fea65e03f12 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 15 Dec 2018 21:40:09 +0000 Subject: 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 --- app/controllers/messages_controller.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/controllers') 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 -- cgit v1.2.3