Skip to content
Snippets Groups Projects
Unverified Commit ec96d346 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

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

Multi record import screen fix
parents a5e01e69 a55b3c0b
Branches
No related tags found
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