]> source.dussan.org Git - redmine.git/commitdiff
Remove default for when changing custom field format.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 15 Feb 2013 10:43:56 +0000 (10:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 15 Feb 2013 10:43:56 +0000 (10:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11397 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/custom_fields_controller.rb

index df858185f6f96c9a3f5cc869c855f1653bab32fb..c20516a1d8f5915520bdb59b7b945118aa4f5883 100644 (file)
@@ -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