mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 17:01:13 +00: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:
parent
7741263ab6
commit
125d8e26b6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user