New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't select many to one field in system filter UI #12161
Comments
I think you should select the |
Yes I tried that but it did not work. |
Oh! Your are doing this in the In |
oh I didn't know you could do it in the Yes I'm doing it in the |
But I can only use |
Yeah, and it looks like a bug. |
This feels like the underlying issue to me. Could you do me a favor, and try to see if it works if you edit the Raw Value (through the field label dropdown menu), and set the rule set in JSON manually? If I'm understanding the use case correctly, it should be {
"parent": {
"_null": true
}
} |
Yes this works |
Thanks for confirming 👍🏻 |
It should also still work with the wrapped _and group: {
"_and": [
{
"parent": {
"_null": true
}
}
]
} The previous example (where you filter against |
Yeah, looks like a UI/UX bug, right? |
Yeah! The "Parent" row in this case should be selectable as well, rather than just toggle its group open/closed. |
Funnily enough, I remember that I fixed that issue already when I reworked the |
@Nitwel It only happens in system-filter, as it uses a v-select rather than a v-list with groups like we use in the display-template component 🙂 I created a new field-list component to standardize its use across the platform (mandatory xkcd) in #12157. Adding that field-list to the system-filter should resolve this issue as well 👍🏻 |
Oh I see, awesome! |
Seems like this is the same as #12040, so closing this in favor of tracking it over there 👍 |
Preflight Checklist
Describe the Bug
I have a recursive collection that has children of itself etc.
I have one special field that I only want to show, when the parent is null meaning on the root element. But its not working. I cannot select the parent field, because it only expands on click and shows its sub fields, but if I use a sub field and check for null of the sub field instead of the parent, it is not working either. Probably because it cannot check the sub field for null because the parent is null.
I want to select the marked field, but its not possible.
To Reproduce
Create a collection that has a o2m relation on itself and try to create a rule that hides some other field within the collection, if its parent is null.
Errors Shown
No response
What version of Directus are you using?
9.6.0
What version of Node.js are you using?
16
What database are you using?
MariaDB
What browser are you using?
Chrome, Firefox
What operating system are you using?
Windows
How are you deploying Directus?
On a remote Debian server
The text was updated successfully, but these errors were encountered: