diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-08 22:51:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-08 22:51:12 +0000 |
commit | 583ee1c8c57080a131723b8f0a934120341c2636 (patch) | |
tree | 477e8e9714d7182d84cce26279515558a2218f2f /app/controllers/boards_controller.rb | |
parent | f0c9c0ef23efb40291d7819343f3ad12b74c2e4f (diff) | |
download | redmine-583ee1c8c57080a131723b8f0a934120341c2636.tar.gz redmine-583ee1c8c57080a131723b8f0a934120341c2636.zip |
Adds a flash message when deleting a board (#24535).
Patch by Javier Menéndez.
git-svn-id: http://svn.redmine.org/redmine/trunk@16166 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/boards_controller.rb')
-rw-r--r-- | app/controllers/boards_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index df90f0db4..a2bbcbbcf 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -102,7 +102,9 @@ class BoardsController < ApplicationController end def destroy - @board.destroy + if @board.destroy + flash[:notice] = l(:notice_successful_delete) + end redirect_to_settings_in_projects end |