Skip to content
Snippets Groups Projects
Commit 5c54f723 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #314 from pratik-joshi/CRM-12217

CRM-12217 fix : the sixth parameter for getFieldsForImport function was ...
parents 2cffba69 3550c9f6
No related branches found
No related tags found
No related merge requests found
...@@ -865,8 +865,7 @@ SELECT id ...@@ -865,8 +865,7 @@ SELECT id
$subTypes = CRM_Contact_BAO_ContactType::subTypeInfo(); $subTypes = CRM_Contact_BAO_ContactType::subTypeInfo();
foreach ($subTypes as $name => $val) { foreach ($subTypes as $name => $val) {
//custom fields for sub type //custom fields for sub type
$subTypeFields = CRM_Core_BAO_CustomField::getFieldsForImport($name); $subTypeFields = CRM_Core_BAO_CustomField::getFieldsForImport($name, FALSE, FALSE, FALSE, TRUE, TRUE);
if (array_key_exists($val['parent'], $fields)) { if (array_key_exists($val['parent'], $fields)) {
$fields[$name] = $fields[$val['parent']] + $subTypeFields; $fields[$name] = $fields[$val['parent']] + $subTypeFields;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment