sz-ligatur Posted May 31, 2023 Share Posted May 31, 2023 Hello @ryan, I had to change some role names on an existing site – after a while I recognized changed behavior for some role related functions. What I found is that using roles in selectors doesn't work exactly the same as I see on other fields: $s1 = "roles=aaa"; $s2 = "roles=aaa|guest"; $s3 = "roles=aaa|guest|notavailable"; echo $users->find($s1); //works, returns some users echo $users->find($s2); //works, returns some more users echo $users->find($s3); //returns empty pageArray ! As soon as I do an "OR" with a role, that does not exist, it wipes out the whole result set. Is this the intended behavior? I guess not, but maybe you can tell me where I'm wrong. Thank you! 2 Link to comment Share on other sites More sharing options...
netcarver Posted May 31, 2023 Share Posted May 31, 2023 Sounds like a bug - could you raise an issue on processwire/processwire-issues? 1 Link to comment Share on other sites More sharing options...
sz-ligatur Posted June 1, 2023 Author Share Posted June 1, 2023 I did it … #1743 - update: this is fixed in processwire 3.0.220, I can confirm that this is working now as expected. 1 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