You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function to_form (called by polymorphic_embed_inputs_for) is hardcoded to use __type__ as a hidden field. If the embedded schema is configured with a different type_field, the changeset will be invalid. I'm working around this for now by manually adding another hidden field with the correct field name.
The function
to_form
(called bypolymorphic_embed_inputs_for
) is hardcoded to use__type__
as a hidden field. If the embedded schema is configured with a differenttype_field
, the changeset will be invalid. I'm working around this for now by manually adding another hidden field with the correct field name.Hidden field for reference:
polymorphic_embed/lib/polymorphic_embed/html/form.ex
Line 153 in 78e51d9
The text was updated successfully, but these errors were encountered: