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

Smarty notice fix on contact search results #25261

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jan 2, 2023

Overview

Smarty notice fix on contact search results - with smarty default escaping on you can see this just doing a basic Contact Search with no criteria

Before

e-notices when searching with escape-on-output

After

empty check removed in favour of making it present - contact who can't see deleted contacts won't get them returned so we should put it in the array regardless of contact permissions

Technical Details

Comments

@civibot
Copy link

civibot bot commented Jan 2, 2023

(Standard links)

@civibot civibot bot added the master label Jan 2, 2023
@demeritcowboy
Copy link
Contributor

I think this is ok just noting the actual is_deleted functionality doesn't work before or after the patch, i.e. is_deleted never seems to be true regardless of whether the contact is deleted or not. At least for basic search and advanced search. I don't even think you can get deleted contacts from basic search.

Further, this styling seems pointless if you can only search in trash or not. It would only make sense if you had a mix of contacts but I'm drawing a blank on where you can get that.

@demeritcowboy demeritcowboy merged commit a6cde0a into civicrm:master Jan 2, 2023
@eileenmcnaughton eileenmcnaughton deleted the notice branch January 2, 2023 20:09
@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy but at least it is notice-free pointlessness

@demeritcowboy
Copy link
Contributor

Hehe, but on closer look, I think the notice-ful pointlessness was actually trying to tell us something. The field is really contact_is_deleted. Have made #25269

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

Successfully merging this pull request may close these issues.

2 participants