mirror of
https://github.com/discourse/discourse.git
synced 2026-07-31 08:38:27 -05:00
minor, ensure ordering of custom fields is consistent
This commit is contained in:
@@ -215,7 +215,7 @@ module HasCustomFields
|
||||
|
||||
def refresh_custom_fields_from_db
|
||||
target = Hash.new
|
||||
_custom_fields.pluck(:name, :value).each do |key, value|
|
||||
_custom_fields.order('id asc').pluck(:name, :value).each do |key, value|
|
||||
self.class.append_custom_field(target, key, value)
|
||||
end
|
||||
@custom_fields_orig = target
|
||||
|
||||
Reference in New Issue
Block a user