diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 806730e356..b5d7f56203 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -1109,7 +1109,10 @@ abstract class bo_merge { $classname = "{$field_app}_merge"; $class = new $classname(); - $app_replacements[$field_app] = $class->get_replacements($values['#'.$field], $placeholders[$index]); + // If we send the real content, it can result in infinite loop of lookups + // This means you can't do {{#other_app/#other_app_cf/n_fn}} + $content = ''; + $app_replacements[$field_app] = $class->get_replacements($values['#'.$field], $content); } $replacements[$placeholders[$index]] = $app_replacements[$field_app]['$$'.$sub[$index].'$$']; }