Commit a4c34586 authored by jaapjansma's avatar jaapjansma

Custom value was not updated.

parent bcfa5a47
......@@ -109,8 +109,10 @@ class CreateRelationship extends AbstractAction {
if (stripos($spec->getName(), 'custom_')!==0) {
continue;
}
$relationshipParams['custom'] = array();
if ($parameters->doesParameterExists($spec->getName())) {
$relationshipParams[$spec->getApiFieldName()] = $parameters->getParameter($spec->getName());
list($customFieldID, $customValueID) = \CRM_Core_BAO_CustomField::getKeyID($spec->getApiFieldName(), TRUE);
\CRM_Core_BAO_CustomField::formatCustomField($customFieldID, $relationshipParams['custom'], $parameters->getParameter($spec->getName()), 'Relationship', $customValueID);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment