Can't update organization with composed language (pt_BR
, es-MX
)
- Create an organization with available locale
es-MX
- run:
Decidim::System::UpdateOrganizationForm.from_model(Decidim::Organization.last).valid?
- error
/home/decidim/app/vendor/ruby/3.2.0/gems/activemodel-7.0.8.7/lib/active_model/attribute_methods.rb:450:in `method_missing': undefined method `name_es-MX' for #<Decidim::System::UpdateOrganizationForm:0x00007fb6123eaa88 @attributes=#<ActiveModel::AttributeSet:0x00007fb61
23ea920 @attributes={"id"=>#<ActiveModel::Attribute::FromUser:0x00007fb613d35290 @name="id", @value_before_type_cast=1, @type=#<ActiveModel::Type::Value:0x00007fb6145bc210 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=#<ActiveModel::Attribute::WithCastVal
ue:0x00007fb613d3a9c0 @name="id", @value_before_type_cast=nil, @type=#<ActiveModel::Type::Value:0x00007fb6145bc210 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>, @value=1>, "host"=>#<ActiveModel::Attribute::FromUser:0x00007fb613d350b0 @name="host", @
value_before_type_cast="cali.co.voca.city", @type=#<ActiveModel::Type::String
Edited by Hadrien Froger