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 = ''; if(!$value) $value = '';
$info['$$'.($prefix ? $prefix.'/':'').$key.'$$'] = $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; return $info;
} }
@ -191,6 +197,9 @@ class infolog_merge extends bo_merge
echo '<tr><td /><td colspan="3">* '.lang('Addressbook placeholders available'). '</td></tr>'; 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>'; echo '<tr><td colspan="4"><h3>'.lang('Contact fields').':</h3></td></tr>';
$n = 0; $n = 0;
foreach($this->contacts->contact_fields as $name => $label) foreach($this->contacts->contact_fields as $name => $label)