-
-
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#457] Add $ids to hook_civicrm_export #12957
Conversation
(Standard links)
|
@scardinius Doesn't the $exportTempTable table have id of the component? |
@pradpnayak it depends on type of exporting object. As I remember only temporary table for contacts contains id |
Probably with different column name? eg activity_id, contribution_id. @scardinius I think we should extend export code to store id for component in $exportTempTable table so that it would be useful for other need if some wants to play around with it like not to export certain rows using component id etc using hook_civicrm_export. Thoughts? |
I tend to agree that the existing hook should be improved instead of adding a redundant one. |
Hi, thanks for your suggestions. I've just move these two new variables into export hook |
Makes sense to me 👍 |
@scardinius it would be helpful if you could squash the commits from this PR into one so we can have a nice commit history in master. |
@colemanw you're right, I'll squash them |
@colemanw I've just squashed the commits |
Verified that the variables are always defined and that this function is only called in that one place, so this is safe to merge. |
@colemanw sure, I will |
@colemanw doc updated civicrm/civicrm-dev-docs#560 |
Overview
Because of GDPR rules we have to save information that some data were exported.
Before
Current hook https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_export/ is not enough because it returns data without id columns. It's hard to implement any sophisticated feature without id of objects.
After
Existing export hook is extended
Technical Details
You can find example here veda-consulting-company/uk.co.vedaconsulting.gdpr#157
Comments
no comments