summaryrefslogtreecommitdiffstats
path: root/app/controllers/enumerations_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-02 17:42:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-02 17:42:20 +0000
commit2d5ac54d2eb9f49b8a2f65b4469aa6d95a1e85d6 (patch)
treeefc30fe2b599ba2cce8f368460b76c32fb197413 /app/controllers/enumerations_controller.rb
parent7701de9ae4fd85ef7ddc0e3a26e2234793d7e902 (diff)
downloadredmine-2d5ac54d2eb9f49b8a2f65b4469aa6d95a1e85d6.tar.gz
redmine-2d5ac54d2eb9f49b8a2f65b4469aa6d95a1e85d6.zip
Applied the flash notices patch by Matt Jones (slightly edited).
flash[:notice] and flash[:error] are now used for notice/error messages. git-svn-id: http://redmine.rubyforge.org/svn/trunk@600 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/enumerations_controller.rb')
-rw-r--r--app/controllers/enumerations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/enumerations_controller.rb b/app/controllers/enumerations_controller.rb
index 16e41977c..e77af49ab 100644
--- a/app/controllers/enumerations_controller.rb
+++ b/app/controllers/enumerations_controller.rb
@@ -64,7 +64,7 @@ class EnumerationsController < ApplicationController
flash[:notice] = l(:notice_successful_delete)
redirect_to :action => 'list'
rescue
- flash[:notice] = "Unable to delete enumeration"
+ flash[:error] = "Unable to delete enumeration"
redirect_to :action => 'list'
end
end