Skip to content
Snippets Groups Projects
Unverified Commit 683b43cb authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #14216 from alifrumin/dontmunge

When creating relationship types don't munge names
parents 21b109a8 2e1b57b5
Branches
Tags
No related merge requests found
......@@ -208,8 +208,8 @@ class CRM_Admin_Form_RelationshipType extends CRM_Admin_Form {
if (empty($params['id'])) {
// Set name on created but don't update on update as the machine name is not exposed.
$params['name_b_a'] = CRM_Utils_String::munge($params['label_b_a']);
$params['name_a_b'] = CRM_Utils_String::munge($params['label_a_b']);
$params['name_b_a'] = $params['label_b_a'];
$params['name_a_b'] = $params['label_a_b'];
}
$result = civicrm_api3('RelationshipType', 'create', $params);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment