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

Merge pull request #1002 from greezybacon/issue/company-name-new-ticket-email


forms: Fix corruption of company name on new ticket

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 8f376621 080ea576
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class Company {
}
function getInfo() {
return $this->getForm()->getClean();
return $this->getForm()->getSaved();
}
function getName() {
......
......@@ -549,6 +549,16 @@ class DynamicFormEntry extends VerySimpleModel {
return $this->_clean;
}
function getSaved() {
$info = array();
foreach ($this->getAnswers() as $a) {
$field = $a->getField();
$info[$field->get('id')]
= $info[$field->get('name')] = $a->getValue();
}
return $info;
}
function forTicket($ticket_id, $force=false) {
static $entries = array();
if (!isset($entries[$ticket_id]) || $force)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment