-
-
Notifications
You must be signed in to change notification settings - Fork 824
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#4227 Fix import to not blank birth_date etc on update #26172
Conversation
No issue was found matching the number given in the pull request title. Please check the issue number. |
(Standard links)
|
16c4808
to
ba0bf99
Compare
if (in_array($key, ['nick_name', 'job_title', 'middle_name', 'birth_date', 'gender_id', 'current_employer', 'prefix_id', 'suffix_id']) | ||
&& ($value == '' || !isset($value)) && | ||
($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0 || | ||
($key === 'current_employer' && empty($params['current_employer']))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current_employer should not show up anymore actually - so could probably go from above too but maybe in master
@MegaphoneJon you might also have an interest? |
I've put merge-ready. |
@eileenmcnaughton looks good, merging this PR. |
thanks @yashodha |
PR for the missing help text: #26252 |
Overview
dev/core#4227 Fix import to not blank birth_date etc on update
Before
per
https://lab.civicrm.org/dev/core/-/issues/4227
After
Fixed according to the parameters of https://lab.civicrm.org/dev/core/-/issues/4227
Technical Details
This is some weird dark code. However, @bjendres has pin pointed that there was a behaviour change & the code is way clearer with this removed.
I initially worried that there might be an expectation at some point that the fields be blanked - but the fact an allowList is specifically configured makes it seem unlikely that this is anything other than a regression from the intended behaviour
Interestingly the test had that value set in the test.
Comments