Skip to content
Snippets Groups Projects
Unverified Commit 8e70cdc5 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #17713 from MegaphoneJon/multi-record-import-fix-527

Multi record import screen fix
parents b4355b48 1296c1a7
Branches
Tags
No related merge requests found
......@@ -151,6 +151,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
civicrm_api3('OptionValue', 'create', [
'option_group_id' => 'mapping_type',
'label' => $mappingType,
'name' => $mappingType,
'value' => max(array_keys($mappingValues['values'])) + 1,
'is_reserved' => 1,
]);
......
......@@ -219,4 +219,11 @@ class CRM_Core_BAO_MappingTest extends CiviUnitTestCase {
];
}
/**
* Ensure getCreateMappingValues() doesn't return an error when there are spaces in the name.
*/
public function testGetCreateMappingValues() {
CRM_Core_BAO_Mapping::getCreateMappingValues("Import Multi value custom data");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment