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

dev/core#1864 Ensure that when search in trash is not checked that on… #17798

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

seamuslee001
Copy link
Contributor

…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

…ly contacts not deleted are returned in the advanced search form
@civibot
Copy link

civibot bot commented Jul 12, 2020

(Standard links)

@civibot civibot bot added the 5.28 label Jul 12, 2020
@eileenmcnaughton
Copy link
Contributor

Thanks @seamuslee001 str_replace is still a bad spell - but less whiffy than before!

@eileenmcnaughton
Copy link
Contributor

I should note it's really a where clause not a permission clause - anyway...

@eileenmcnaughton
Copy link
Contributor

I just tested this & it works - we should port to 5.27 & drop a release inn the next day or 2 (@totten )

@colemanw
Copy link
Member

Thanks for working on this @seamuslee001

@demeritcowboy
Copy link
Contributor

Thanks also for doing this!

@agileware-justin
Copy link
Contributor

Thanks for fixing this bug @seamuslee001 and others much appreciated!

@spalmstr
Copy link
Contributor

@seamuslee001 My thanks, too.

@eileenmcnaughton
Copy link
Contributor

Note we are hoping to get @totten to drop a release in the next day or 2 with this.

@totten
Copy link
Member

totten commented Jul 14, 2020

Note: The 5.27-stable backport of this is a little hard to see due to some crossed wires. The net effect of #17796+#17802 is to backport #17798.

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

Successfully merging this pull request may close these issues.

7 participants