Skip to content
Snippets Groups Projects
Commit 3f4a6d44 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

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

Fix #10177 for real
parent d36fcb54
No related branches found
No related tags found
No related merge requests found
......@@ -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: '' }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment