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