Commit bb4cfe41 authored by jaapjansma's avatar jaapjansma

Fixed issue with '0' value

parent 15699a38
......@@ -27,11 +27,10 @@ class UpdateCustomData extends AbstractAction {
if (stripos($spec->getName(), 'custom_')!==0) {
continue;
}
if ($parameters->getParameter($spec->getName())) {
if ($parameters->doesParameterExists($spec->getName())) {
$apiParams[$spec->getApiFieldName()] = $parameters->getParameter($spec->getName());
}
}
$result = civicrm_api3('Contact', 'create', $apiParams);
}
......
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