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)) { ...@@ -29,8 +29,7 @@ if (is_a($template, EmailTemplateGroup)) {
$msgtemplates=$template->getGroup()->all_names; $msgtemplates=$template->getGroup()->all_names;
$info=array_merge(array('subj'=>$template->getSubject(), 'body'=>$template->getBody()),$info); $info=array_merge(array('subj'=>$template->getSubject(), 'body'=>$template->getBody()),$info);
} }
$info['tpl']=($info['tpl'] && $msgtemplates[$info['tpl']])?$info['tpl']:'ticket.autoresp'; $tpl=$msgtemplates[$selected];
$tpl=$msgtemplates[$info['tpl']];
?> ?>
<h2>Email Template Message - <span><?php echo $name; ?></span></h2> <h2>Email Template Message - <span><?php echo $name; ?></span></h2>
...@@ -72,7 +71,7 @@ $tpl=$msgtemplates[$info['tpl']]; ...@@ -72,7 +71,7 @@ $tpl=$msgtemplates[$info['tpl']];
<thead> <thead>
<tr> <tr>
<th colspan="2"> <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> <em>Subject and body required. <a class="tip" href="ticket_variables.txt">Supported Variables</a>.</em>
</th> </th>
</tr> </tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment