Skip to content
Snippets Groups Projects
Commit f376cd8b authored by Jared Hancock's avatar Jared Hancock
Browse files

Ignore case for ticket variables on custom fields

parent c55ca507
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,8 @@ class Ticket {
if (!$this->_answers) {
foreach (DynamicFormEntry::forTicket($this->getId(), true) as $form)
foreach ($form->getAnswers() as $answer)
$this->_answers[$answer->getField()->get('name')]
= $answer;
if ($tag = mb_strtolower($answer->getField()->get('name')))
$this->_answers[$tag] = $answer;
}
}
......@@ -1097,6 +1097,7 @@ class Ticket {
return $this->getOwner();
break;
default:
$tag = mb_strtolower($tag);
if (isset($this->_answers[$tag]))
// The answer object is retrieved here which will
// automatically invoke the toString() method when the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment