From: Jean-Philippe Lang Date: Fri, 15 Feb 2013 10:43:56 +0000 (+0000) Subject: Remove default for when changing custom field format. X-Git-Tag: 2.3.0~119 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3277d59e5c00ead6a930ca452903f87815e2cea3;p=redmine.git Remove default for when changing custom field format. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11397 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb index df858185f..c20516a1d 100644 --- a/app/controllers/custom_fields_controller.rb +++ b/app/controllers/custom_fields_controller.rb @@ -68,6 +68,8 @@ class CustomFieldsController < ApplicationController @custom_field = CustomField.new_subclass_instance(params[:type], params[:custom_field]) if @custom_field.nil? render_404 + else + @custom_field.default_value = nil end end