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

[REF] Remove seemingly unreachable attempt to format activity_date_time #19437

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jan 23, 2021

Overview

[REF] Remove seemingly unreachable attempt to format activity_date_time

Before

Check for $key === 'activity_date_time' within a check whether $key is in the format 'custom_4' would never be true

After

poof

Technical Details

This is within the if custom field section - it would never be true but formatting exists further down

Comments

…me field

This is within the if custom field section - it would never be true but formatting exists further down
@civibot
Copy link

civibot bot commented Jan 23, 2021

(Standard links)

@civibot civibot bot added the master label Jan 23, 2021
@eileenmcnaughton eileenmcnaughton changed the title [REF] Remove seemingly unreachable attempt to format activity_date_ti… [REF] Remove seemingly unreachable attempt to format activity_date_time Jan 23, 2021
@demeritcowboy
Copy link
Contributor

Interesting:

I tested and everything looks ok. The mentioned issue in there about importing a custom field of type country seems to work ok.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy this stuff is all over the place - also check #19111 where I decided ripping out a bunch of code makes custom data imports work better....

@demeritcowboy
Copy link
Contributor

I can look at 19111 but yeah that one would be good to have a couple people throw things at it.

This PR looks fine to me. I'm noticing now time components of dates don't import properly but that seems the same before and after.

@colemanw colemanw merged commit 1ee41a6 into civicrm:master Jan 25, 2021
@colemanw
Copy link
Member

Merging because it "looks fine" to demerit

@colemanw colemanw deleted the clean branch January 25, 2021 02:34
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.

3 participants