Fixed event editing

This commit is contained in:
Godwin
2017-08-19 18:43:59 -07:00
parent c2598aa47f
commit c3591ba987
2 changed files with 4 additions and 5 deletions
+1 -3
View File
@@ -27,9 +27,7 @@ module FormHelper
value = object.is_a?(Hash) ? object[locale.to_sym] : object.get_column_for_locale!(name, locale, false)
# use the default value if we need to
if _options[:default].present? && value.blank?
value = _(_options[:default], locale: locale)
end
value = _(_options[:default], locale: locale) if _options[:default].present? && value.blank?
_options[:index] = locale
_options[:lang] = locale