Tested and works
Testing context: A paragraph field for products called field_related_items
that is a paragraph type consisting of a textfield field_header
and a required field that allows unlimited product references called field_products_reference
Issues found while testing:
- If you want to add a related item for one language but not for the other, validation will stop you for not filling out the product field in the language w/o the product since it's a required field
- You cant delete an item if the required field for it (the product reference in this case) isn't filled out
- If you leave a required field unfilled for a language, and that language isn't the current tab selected, when you submit the form it won't submit but you don't see the validation error
- The Related Items field now has a paragraph automatically added to be filled in so when i edit the product I cant save the form due to the fields being required even though I didn't want to add any
- Inconsistent validation: when I add a new Related Items group it won't let me add a new product field before filling in the first one. After filling in the first one I can add as many empty ones as I want
- Can't add more product lines on the second language than the primary language
- If you choose the "delete item" option to get rid of a field you added by accident before it has ever been saved to the entity you get an error
This patch fixed the error on the explorer page for me but not sure if it has implications elsewhere I haven't found yet.
swickham → created an issue.
I spoke too soon. After considering use cases the way it currently works makes the most sense considering the affiliated domains for a user account isn't necessarily meant as a restriction, more a way to identify their affiliation so restricted content later can make decisions.
This can be closed.
swickham → created an issue.