diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-15 10:43:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-15 10:43:56 +0000 |
commit | 3277d59e5c00ead6a930ca452903f87815e2cea3 (patch) | |
tree | ba75d89e42c2f5b4431a6807c845e097136420e7 /app | |
parent | 32bf0f03efdcdfaa6314095979c82bc69f2931e8 (diff) | |
download | redmine-3277d59e5c00ead6a930ca452903f87815e2cea3.tar.gz redmine-3277d59e5c00ead6a930ca452903f87815e2cea3.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/custom_fields_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |