Skip to content

A platform for community discussion. Free, open, simple.

FIX: symbols and strings should be treated similarly while saving custom fields

fzngagan352ad826c10d
diff --git a/app/models/concerns/has_custom_fields.rb b/app/models/concerns/has_custom_fields.rb
index 0bb3fc55122..3d6b52427b5 100644
--- a/app/models/concerns/has_custom_fields.rb
+++ b/app/models/concerns/has_custom_fields.rb
@@ -203,7 +203,7 @@ module HasCustomFields
def save_custom_fields(force = false)
if force || !custom_fields_clean?
- dup = @custom_fields.dup
+ dup = @custom_fields.dup.with_indifferent_access
array_fields = {}
ActiveRecord::Base.transaction do