mirror of
https://github.com/redmine/redmine.git
synced 2026-07-28 19:49:51 +02:00
Flash messages on CustomFields destroy (#24801).
Patch by Javier Menéndez. git-svn-id: http://svn.redmine.org/redmine/trunk@16348 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -76,7 +76,9 @@ class CustomFieldsController < ApplicationController
|
||||
|
||||
def destroy
|
||||
begin
|
||||
@custom_field.destroy
|
||||
if @custom_field.destroy
|
||||
flash[:notice] = l(:notice_successful_delete)
|
||||
end
|
||||
rescue
|
||||
flash[:error] = l(:error_can_not_delete_custom_field)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user