-
-
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
dev/core#1485 Fix field name for join_date to be membership_join_date… #16120
Conversation
(Standard links)
|
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.
I pulled the file from your PR and ran an import, however, and it did not work. It utilized today's date on the import.
The final piece of the puzzle is adding the membership_join_date key to the $changes array in lines 708-712. If the key isn't renamed to 'join_date', then the create() method won't pick it up. That method only looks for 'join_date'.
I modded the $changes array to add the new key and an import worked with your changes, so I would anticipate that minor addition completing the fix. |
… in line with the DAO schema Also include membership_join_date into the mapping as per Jamie's comments
52b4b8d
to
c8dcfe3
Compare
ok done so now @jamie-tillman |
I was able to write a unit test for this that I will put up separately but fix looks good & @jamie-tillman has tested /r-run it so I'm merging |
Test commit here #16127 |
… in line with the DAO schema
Overview
This matches the changes for start_date and end_date as per https://github.com/civicrm/civicrm-core/blob/master/CRM/Upgrade/Incremental/php/FiveEighteen.php#L75
Before
Join date ignored when importing memberships
After
Join date if supplied in the file is respected
ping @eileenmcnaughton