diff --git a/decidim-user_extension/app/forms/decidim/user_extension_form.rb b/decidim-user_extension/app/forms/decidim/user_extension_form.rb index 701cec26c6..5070c2c2ff 100644 --- a/decidim-user_extension/app/forms/decidim/user_extension_form.rb +++ b/decidim-user_extension/app/forms/decidim/user_extension_form.rb @@ -34,8 +34,8 @@ def self.occupation_length validates :real_name, presence: true, length: { maximum: Decidim::UserExtensionForm.real_name_length } validates :address, presence: true, length: { maximum: Decidim::UserExtensionForm.address_length } validates :birth_year, presence: true, format: /\A[12][0-9]{3}\z/ - validates :gender, inclusion: { in: GENDERS.keys } - validates :occupation, length: { maximum: Decidim::UserExtensionForm.occupation_length } + validates :gender, presence: true, inclusion: { in: GENDERS.keys } + validates :occupation, presence: true, length: { maximum: Decidim::UserExtensionForm.occupation_length } # real_name && address && birth_year should be unique?? def unique_id