Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
ec96d346
Unverified
Commit
ec96d346
authored
4 years ago
by
Seamus Lee
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #17697 from MegaphoneJon/multi-record-import-fix
Multi record import screen fix
parents
a5e01e69
a55b3c0b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/BAO/Mapping.php
+1
-0
1 addition, 0 deletions
CRM/Core/BAO/Mapping.php
tests/phpunit/CRM/Core/BAO/MappingTest.php
+7
-0
7 additions, 0 deletions
tests/phpunit/CRM/Core/BAO/MappingTest.php
with
8 additions
and
0 deletions
CRM/Core/BAO/Mapping.php
+
1
−
0
View file @
ec96d346
...
...
@@ -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
,
]);
...
...
This diff is collapsed.
Click to expand it.
tests/phpunit/CRM/Core/BAO/MappingTest.php
+
7
−
0
View file @
ec96d346
...
...
@@ -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"
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment