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

Linkfield causes error when filtering in Craft admin #288

Open
sgtpenguin opened this issue Feb 11, 2025 · 0 comments
Open

Linkfield causes error when filtering in Craft admin #288

sgtpenguin opened this issue Feb 11, 2025 · 0 comments

Comments

@sgtpenguin
Copy link

Kind of an esoteric one, but when filtering for a relations field in the craft admin and choosing "has a value" or "is empty", this error pops up and the search doesn't complete. I filed an issue with Craft and they helped point out that the source of the problem was linkfield.
Image

I did a bit of troubleshooting locally and I think I've narrowed down the issue to craft-utils/src/foreignField/ForeignFieldQueryExtension.php

and specifically line 260. If I swap Json::encode for json_encode it appears to work fine. I couldn't figure out why this might be the case.

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant