From 583ee1c8c57080a131723b8f0a934120341c2636 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 8 Jan 2017 22:51:12 +0000 Subject: [PATCH] Adds a flash message when deleting a board (#24535). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Javier Menéndez. git-svn-id: http://svn.redmine.org/redmine/trunk@16166 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/boards_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5