- added 'company' and 'salutation' to some templates, fixes #376

This commit is contained in:
Michael Kaufmann (d00p)
2010-08-17 06:02:31 +00:00
parent 2a5494c85a
commit 40ba41497b
3 changed files with 19 additions and 1 deletions

View File

@@ -255,12 +255,14 @@ class ticket
{
// Get e-mail message for customer
$usr = $this->db->query_first('SELECT `name`, `firstname`, `email`
$usr = $this->db->query_first('SELECT `name`, `firstname`, `company`, `email`
FROM `' . TABLE_PANEL_CUSTOMERS . '`
WHERE `customerid` = "' . (int)$customerid . '"');
$replace_arr = array(
'FIRSTNAME' => $usr['firstname'],
'NAME' => $usr['name'],
'COMPANY' => $usr['company'],
'SALUTATION' => getCorrectUserSalutation($usr),
'SUBJECT' => $this->Get('subject', true)
);
}