]> source.dussan.org Git - redmine.git/commitdiff
Adds a flash message when deleting a board (#24535).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Jan 2017 22:51:12 +0000 (22:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Jan 2017 22:51:12 +0000 (22:51 +0000)
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

index df90f0db417e604b8599589272e4cd5b0bd22599..a2bbcbbcf64a66ca817eb8797305a8e73ecd6937 100644 (file)
@@ -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