Add placeholders for parent

This commit is contained in:
Nathan Gray 2014-06-18 15:50:23 +00:00
parent 3f8ac20b7a
commit 228d3e9614

View File

@ -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 '<tr><td /><td colspan="3">* '.lang('Addressbook placeholders available'). '</td></tr>';
}
echo '<tr><td colspan="4"><h3>'.lang('Parent').":</h3></td></tr>";
echo '<tr><td>{{info_id_parent/info_subject}}</td><td colspan="3">'.lang('All other %1 fields are valid',lang('infolog'))."</td></tr>\n";
echo '<tr><td colspan="4"><h3>'.lang('Contact fields').':</h3></td></tr>';
$n = 0;