Awight has uploaded a new change for review. https://gerrit.wikimedia.org/r/238636
Change subject: Include custom fields in default export ...................................................................... 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: I556f19d130e391689e325748e703247f8351c96a --- M CRM/Export/BAO/Export.php A patches/civicrm-4.2.19-drupal-wmf-export-custom.patch 2 files changed, 14 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm/civicrm refs/changes/36/238636/1 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 @@ $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/238636 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I556f19d130e391689e325748e703247f8351c96a Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/crm/civicrm Gerrit-Branch: master Gerrit-Owner: Awight <awi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits