fallbacks are necessary on validation as they are also used later on

This reverts commit 2e81aee28b.
pull/41/head
Jens Ulferts 13 years ago
parent 3f3ee67cf0
commit 20b216247c
  1. 2
      app/models/custom_field.rb

@ -67,7 +67,7 @@ class CustomField < ActiveRecord::Base
is_required = false
self.translated_locales.each do |locale|
I18n.with_locale(locale) do
v = CustomValue.new(:custom_field => self, :value => I18n.without_fallbacks{default_value}, :customized => nil)
v = CustomValue.new(:custom_field => self, :value => default_value, :customized => nil)
errors.add(:default_value, :invalid) unless v.valid?
end
end

Loading…
Cancel
Save