-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
#991 subtypes not filled in when editing a smart group #16541
#991 subtypes not filled in when editing a smart group #16541
Conversation
(Standard links)
|
@bhahumanists does this affect other search forms (contribution search etc). If not I'm OK with this as a location for the fix. I feel like there was an issue in a previous attempt to fix this - maybe @jitendrapurohit or @pradpnayak remembers? Note there is a style warning blocking jenkins - do you know about those? |
The fix Eileen is referring to is #14373. I did an |
I just did a code review as well. The code itself looks reasonable if we agree that this is the correct approach. @bhahumanists I read on the ticket that @scardinius doesn't experience this bug on "Find Contacts" search. If this problem doesn't exist on Search Builder either, I'd feel comfortable with the code going here and would recommend a merge-on-pass. I don't think can affect Contribution Search per Eileen's comment above because contact subtype isn't present on Contribution Search. |
test this pleasee |
I'm OK with a fix at this level & with merging this based on @MegaphoneJon 's review |
I'll fix the whitespace issue (once I can figure out what it is, anyway) |
Jenkins re test this please |
retest this please |
I think the fail relates |
test this please |
By checking if contact_type is empty
Updated. I don't think the fails relate now...? |
@eileenmcnaughton is this ready to merge? |
Jenkins re test this please |
https://lab.civicrm.org/dev/core/issues/991
Overview
Fixes contact subtypes not being carried over when editing a smart group created in Advanced Search.
Before
If you edit a smart group that contains a contact subtype (and it was created in Advanced Search), the subtype is not included in the form. Subsequent searches then ignore it. Similarly it's not included in the qill.
After
The contact subtype appears correctly.
Technical Details
N/A
Comments
This PR isn't a great fix as there's likely a better place for it, but I'm not sure where that would be. I can't put it in normalizeFormValues() as that doesn't run in this context, and there doesn't seem to be anywhere suitable in the preProcess.