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

skip empty 'where' clauses #793

Merged
merged 1 commit into from Apr 13, 2023

Conversation

mikey-harveycameron
Copy link
Contributor

This is a fix for both symbiote/silverstripe-gridfieldextensions#356 and possibly #257

@tractorcow
Copy link
Collaborator

Odd that that predicate was empty in the first place. We have suppressed the symptom; Is there worth looking into a deeper cause?

@tractorcow tractorcow merged commit c7a22a0 into tractorcow-farm:master Apr 13, 2023
1 check failed
@mikey-harveycameron
Copy link
Contributor Author

Hey uh, I appreciate the merge but I really needed it for SS4, not SS5... any chance it can be applied to your 6.0 branch too?

@mikey-harveycameron
Copy link
Contributor Author

a quick debug shows that the $query->getWhere(); line is returning an empty condition at index 0. This suggests to me that the problem is outside this component.

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

Successfully merging this pull request may close these issues.

None yet

2 participants