-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
dev/core#1864 Ensure that when search in trash is not checked that on… #17798
Conversation
…ly contacts not deleted are returned in the advanced search form
(Standard links)
|
Thanks @seamuslee001 str_replace is still a bad spell - but less whiffy than before! |
I should note it's really a where clause not a permission clause - anyway... |
I just tested this & it works - we should port to 5.27 & drop a release inn the next day or 2 (@totten ) |
Thanks for working on this @seamuslee001 |
Thanks also for doing this! |
Thanks for fixing this bug @seamuslee001 and others much appreciated! |
@seamuslee001 My thanks, too. |
Note we are hoping to get @totten to drop a release in the next day or 2 with this. |
…ly contacts not deleted are returned in the advanced search form
Overview
This is an alternate to #17793 and #17790 in that this aims to focus on the filtering at the Quickform/Query level rather than in the ACL level.
Before
Not selecting search in trash returned contacts in trash
After
Not selecting search in trash only returns contacts not in the trash
Technical Details
We want to allow for the ACLs to allow for anyone who has access to trashed contacts to do a contact.get without having the trash filter applied but we need the form to respect if we are searching in the trash or not. So moving to the query / form layer to do this. I have also added a unit test to check on if we are searching in the trash that the correct where clause is added
ping @eileenmcnaughton @spalmstr @colemanw @demeritcowboy