mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00:00
FIX: symbols and strings should be treated similarly while saving custom fields
This commit is contained in:
parent
71e747b160
commit
352ad826c1
@ -203,7 +203,7 @@ module HasCustomFields
|
|||||||
|
|
||||||
def save_custom_fields(force = false)
|
def save_custom_fields(force = false)
|
||||||
if force || !custom_fields_clean?
|
if force || !custom_fields_clean?
|
||||||
dup = @custom_fields.dup
|
dup = @custom_fields.dup.with_indifferent_access
|
||||||
array_fields = {}
|
array_fields = {}
|
||||||
|
|
||||||
ActiveRecord::Base.transaction do
|
ActiveRecord::Base.transaction do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user