Skip to content
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

Fields Don't Respond to Conditions Set In M2O Fields #11920

Closed
3 tasks done
supermx1 opened this issue Mar 2, 2022 · 3 comments
Closed
3 tasks done

Fields Don't Respond to Conditions Set In M2O Fields #11920

supermx1 opened this issue Mar 2, 2022 · 3 comments

Comments

@supermx1
Copy link

supermx1 commented Mar 2, 2022

Preflight Checklist

Describe the Bug

hk.mp4

To Reproduce

See above video

Errors Shown

None

What version of Directus are you using?

9.5.2

What version of Node.js are you using?

14

What database are you using?

MySQL

What browser are you using?

Chrome, Brave

What operating system are you using?

MacOS, Ubuntu 20.08LTS

How are you deploying Directus?

Digital Ocean Cloud

@azrikahar
Copy link
Contributor

azrikahar commented Mar 3, 2022

Duplicate of #10952, and we are currently tracking this in #8228 so feel free to follow the notification over there 👍

EDIT: See also #11844 for most recent related discussion.

Just as a summary, the general issue with M2O condition revolves around the condition set is actually:

{
    "m2o_field": {
        "id": {
            "_eq": 2
         }
    }
}

but when we are selecting an item of m2o field, the condition that is actually expected by the app is:

{
    "m2o_field": {
        "_eq": 2
    }
}

hence the condition couldn't match properly.

@ulvidamirli
Copy link

ulvidamirli commented Apr 9, 2022

Duplicate of #10952, and we are currently tracking this in #8228 so feel free to follow the notification over there 👍

EDIT: See also #11844 for most recent related discussion.

Just as a summary, the general issue with M2O condition revolves around the condition set is actually:

{
    "m2o_field": {
        "id": {
            "_eq": 2
         }
    }
}

but when we are selecting an item of m2o field, the condition that is actually expected by the app is:

{
    "m2o_field": {
        "_eq": 2
    }
}

hence the condition couldn't match properly.

I try this with the latest version (9.8.0) but it doesn't work. My problem is the same as the OP. Could you please help to solve this?

@rijkvanzanten
Copy link
Member

@ulvidamirli You already posted in #8228 too, so lets keep the conversation in there 👍🏻

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants