* Api - Fix nested custom field merging

This commit is contained in:
nathangray 2017-12-01 11:58:44 -07:00
parent 2df24a3aaf
commit 6506418e61

View File

@ -1427,6 +1427,9 @@ abstract class Merge
// Get replacements for that application
if(!$app_replacements[$field])
{
// If we send the real content it can result in infinite loop of lookups
// so we send only the used fields
$content = $expand_sub_cfs[$field] ? $expand_sub_cfs[$field] : '';
$app_replacements[$field] = $this->get_app_replacements($field_app, $values['#'.$field], $content);
}
$replacements[$placeholders[$index]] = $app_replacements[$field]['$$'.$sub[$index].'$$'];