From 228d3e9614cb85c5843488def5f3f9c1f64e2929 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 18 Jun 2014 15:50:23 +0000 Subject: [PATCH] Add placeholders for parent --- infolog/inc/class.infolog_merge.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infolog/inc/class.infolog_merge.inc.php b/infolog/inc/class.infolog_merge.inc.php index bffd6ffb77..d2f49f6774 100644 --- a/infolog/inc/class.infolog_merge.inc.php +++ b/infolog/inc/class.infolog_merge.inc.php @@ -144,6 +144,12 @@ class infolog_merge extends bo_merge if(!$value) $value = ''; $info['$$'.($prefix ? $prefix.'/':'').$key.'$$'] = $value; } + + // Add parent + if($record->info_id_parent) + { + $info += $this->infolog_replacements($record->info_id_parent, 'info_id_parent', $content); + } return $info; } @@ -190,6 +196,9 @@ class infolog_merge extends bo_merge { echo '* '.lang('Addressbook placeholders available'). ''; } + + echo '

'.lang('Parent').":

"; + echo '{{info_id_parent/info_subject}}'.lang('All other %1 fields are valid',lang('infolog'))."\n"; echo '

'.lang('Contact fields').':

'; $n = 0;