Skip to content
Snippets Groups Projects
Commit 6603bfa5 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #727 from greezybacon/issue/tpl-description


Show correct description for template edits

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents a77d582b 0afb3cad
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,7 @@ if (is_a($template, EmailTemplateGroup)) {
$msgtemplates=$template->getGroup()->all_names;
$info=array_merge(array('subj'=>$template->getSubject(), 'body'=>$template->getBody()),$info);
}
$info['tpl']=($info['tpl'] && $msgtemplates[$info['tpl']])?$info['tpl']:'ticket.autoresp';
$tpl=$msgtemplates[$info['tpl']];
$tpl=$msgtemplates[$selected];
?>
<h2>Email Template Message - <span><?php echo $name; ?></span></h2>
......@@ -72,7 +71,7 @@ $tpl=$msgtemplates[$info['tpl']];
<thead>
<tr>
<th colspan="2">
<h4><?php echo Format::htmlchars($tpl['desc']); ?></h4>
<h4><?php echo Format::htmlchars($nfo['desc']); ?></h4>
<em>Subject and body required. <a class="tip" href="ticket_variables.txt">Supported Variables</a>.</em>
</th>
</tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment