Eileen has submitted this change and it was merged.
Change subject: Merge from master :Include custom fields in default export
......................................................................
Merge from master :Include custom fields in default export
Quite a dirty hack. Plus, cheap and effective. This causes all custom
fields to be included in the default "Primary fields" export.
Bug: T105918
Change-Id: I5dda66abd686090fd5b87a1d2a03226592c28aae
---
M CRM/Export/BAO/Export.php
A patches/civicrm-4.2.19-drupal-wmf-export-custom.patch
2 files changed, 14 insertions(+), 1 deletion(-)
Approvals:
Eileen: Verified; Looks good to me, approved
diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php
index a81a4ed..d74d1bf 100644
--- a/CRM/Export/BAO/Export.php
+++ b/CRM/Export/BAO/Export.php
@@ -275,7 +275,7 @@
$primary = TRUE;
$fields = CRM_Contact_BAO_Contact::exportableFields('All', TRUE, TRUE);
foreach ($fields as $key => $var) {
- if ($key && (substr($key, 0, 6) != 'custom')) {
+ if ($key) {
//for CRM=952
$returnProperties[$key] = 1;
}
diff --git a/patches/civicrm-4.2.19-drupal-wmf-export-custom.patch
b/patches/civicrm-4.2.19-drupal-wmf-export-custom.patch
new file mode 100644
index 0000000..d99b2c7
--- /dev/null
+++ b/patches/civicrm-4.2.19-drupal-wmf-export-custom.patch
@@ -0,0 +1,13 @@
+diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php
+index 3a317da..15b9e98 100644
+--- a/CRM/Export/BAO/Export.php
++++ b/CRM/Export/BAO/Export.php
+@@ -274,7 +274,7 @@ class CRM_Export_BAO_Export {
+ $primary = TRUE;
+ $fields = CRM_Contact_BAO_Contact::exportableFields('All', TRUE, TRUE);
+ foreach ($fields as $key => $var) {
+- if ($key && (substr($key, 0, 6) != 'custom')) {
++ if ($key) {
+ //for CRM=952
+ $returnProperties[$key] = 1;
+ }
--
To view, visit https://gerrit.wikimedia.org/r/241966
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5dda66abd686090fd5b87a1d2a03226592c28aae
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: 4.6.9-deploy
Gerrit-Owner: Eileen <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Eileen <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits