Project

General

Profile

Patch #24801 » custom_fields_destroy_flash.patch

Javier Menéndez Rizo, 2017-01-10 16:19

View differences:

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
    (1-1/1)