Closed jdjoshuadavison closed 2 weeks ago
Does the bug still occur on your system? I can't reproduce it.
The bug does not occur on my instance. Can you give me some more information?
We use this all the time and never had any issues:
Hi.
I can replicate this issue in a clean v11 install: https://github.com/sal1n/flexible-editor-issue
Try adding an Image in the above example, credentials in the dockerfile.
If the editor is in a group under a group then I get the "the related item does not exist" message. If I take the editor out of the group then it works as expected.
Thanks @sal1n, this way I could reproduce the issue.
If you watch the video below, you will see that the problem is not nesting the Flexible Editor field, but losing the connection to its reference field (editor_nodes
) when nesting. This may be related to Directus and passing data to groups. However, I would strongly recommend to put your editor_nodes field
in the same group as your Flexible Editor field
, otherwise they may lose their connection!
https://github.com/user-attachments/assets/f1f3ed06-3a68-40e9-9bd4-914f367476f6
To address this issue, I have added a note in the README:
Feel free to reopen this issue, if there is an edge case that is not covered by this workaround!
Describe the bug Flexible editors only work up to 1 group deep. When you put a flexible editor field in a group within a group and add a relation node, it immediately gives the error that "the related item does not exist". The item is not created in the junction collection and the M2A reference field doesn't change.
To Reproduce Steps to reproduce the behavior.
Add 2 group fields to your collection and put one inside the other
Add a flexible editor field to your collection, and put it inside both groups
Set up at least one relation node for the flexible editor
Create a new item in the collection
Add a related item to the flexible editor field Immediately upon creating the related item, you'll see 'the related item does not exist'
Flexible Editor and Directus Versions: