MoritzLost Posted October 20, 2023 Share Posted October 20, 2023 We have a query that's used to find all users with the member role, but without any of a number of other roles: $users->find('roles=member, roles!=member-confirmed|login-disabled|superuser|editor, sort=created') This used to work in previous ProcessWire versions. However, we recently updated ProcessWire (currently on 3.0.226). Now the query just returns all users, regardless of role. Anyone know when this behaviour was changed? And how can we fix the query? @ryan Since this is a breaking change, why wasn't there a minor or major version increase for whichever release changed this behaviour? Link to comment Share on other sites More sharing options...
AndZyk Posted October 20, 2023 Share Posted October 20, 2023 Hello @MoritzLost, I had a similar issue with a selector a few weeks ago containing not equal to (!=) and an or-condition. My issue was fixed, but maybe this could be related: https://github.com/processwire/processwire-issues/issues/1802 Regards, Andreas 1 1 Link to comment Share on other sites More sharing options...
MoritzLost Posted October 20, 2023 Author Share Posted October 20, 2023 @AndZyk Thanks Andreas! Looks like that was it, I updated to 3.0.229 and the query works correctly again. Not sure why my colleague updated to a non-Master version, we usually don't do that. Lesson learned, I guess. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now