mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
minor, ensure ordering of custom fields is consistent
This commit is contained in:
parent
9c22c68d39
commit
174ab2d93a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user