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
Let's create a "parent" and a "child" collection.
The child collection get's a many-to-one relation to the parent and the parent a related one-to-many alias.
When we try to create new child items from the parent's object, the childs "parent" field is always disabled in the drawer.
On creating the item it get's automatically set to the current opened parent (everything as expected).
But once we make the parent-id field required on the child we can't create any child-items from the parent anymore. The app prevents this, as there's no parent selected.
To Reproduce
@ see above
1.) Create child and parent collection
2.) Create many-to-one relation on child to parent & corresponding one-to-many alias
3.) Create a parent object and try to create a child --> everything works as expected
4.) Set the parent_id on the child as required
5.) Re-try to create a child from the parent and it fails
Errors Shown
the parent.id field is required
What version of Directus are you using?
9.15.1
What version of Node.js are you using?
N/A
What database are you using?
MySQL
What browser are you using?
Chrome
How are you deploying Directus?
N/A
The text was updated successfully, but these errors were encountered:
Describe the Bug
Let's create a "parent" and a "child" collection.
The child collection get's a many-to-one relation to the parent and the parent a related one-to-many alias.
When we try to create new child items from the parent's object, the childs "parent" field is always disabled in the drawer.
On creating the item it get's automatically set to the current opened parent (everything as expected).
But once we make the parent-id field required on the child we can't create any child-items from the parent anymore. The app prevents this, as there's no parent selected.
To Reproduce
@ see above
1.) Create child and parent collection
2.) Create many-to-one relation on child to parent & corresponding one-to-many alias
3.) Create a parent object and try to create a child --> everything works as expected
4.) Set the parent_id on the child as required
5.) Re-try to create a child from the parent and it fails
Errors Shown
the parent.id field is required
What version of Directus are you using?
9.15.1
What version of Node.js are you using?
N/A
What database are you using?
MySQL
What browser are you using?
Chrome
How are you deploying Directus?
N/A
The text was updated successfully, but these errors were encountered: