Patch #24801 » custom_fields_destroy_flash.patch
| app/controllers/custom_fields_controller.rb (revision ) | ||
|---|---|---|
| 76 | 76 | |
| 77 | 77 |
def destroy |
| 78 | 78 |
begin |
| 79 |
@custom_field.destroy |
|
| 79 |
if @custom_field.destroy |
|
| 80 |
flash[:notice] = l(:notice_successful_delete) |
|
| 81 |
end |
|
| 80 | 82 |
rescue |
| 81 | 83 |
flash[:error] = l(:error_can_not_delete_custom_field) |
| 82 | 84 |
end |