Patch #24801 » custom_fields_destroy_flash.patch
| app/controllers/custom_fields_controller.rb (revision ) | ||
|---|---|---|
|
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
|
||