From 3277d59e5c00ead6a930ca452903f87815e2cea3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 15 Feb 2013 10:43:56 +0000 Subject: [PATCH] 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 --- app/controllers/custom_fields_controller.rb | 2 ++ 1 file changed, 2 insertions(+) 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