Commit 3f4a6d44 authored by ThibG's avatar ThibG Committed by Eugen Rochko

Fix setting up fields of a previously suspended account (#10222)

Fix #10177 for real
parent d36fcb54
......@@ -266,6 +266,7 @@ class Account < ApplicationRecord
return if fields.size >= DEFAULT_FIELDS_SIZE
tmp = self[:fields] || []
tmp = [] if tmp.is_a?(Hash)
(DEFAULT_FIELDS_SIZE - tmp.size).times do
tmp << { name: '', value: '' }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment