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

topics: Only select email topic if it is active

parent abdc3df0
Branches
Tags
No related merge requests found
......@@ -2403,9 +2403,10 @@ class Ticket {
$form->setAnswer('priority', null, $email->getPriorityId());
if ($autorespond)
$autorespond = $email->autoRespond();
if (!isset($topic)) {
// This may return NULL. No big deal
$topic = $email->getTopic();
if (!isset($topic)
&& ($T = $email->getTopic())
&& ($T->isActive())) {
$topic = $T;
}
$email = null;
$source = 'Email';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment