Fixed e-mail reply polling (#1154)
This commit is contained in:
parent
54a5a9803d
commit
784d470ba5
|
@ -83,9 +83,12 @@ class EmailPollingController extends Controller {
|
|||
|
||||
try {
|
||||
if($email->isReply()) {
|
||||
if($email->getTicket()->authorToArray()['email'] === $email->getSender()) {
|
||||
$ticketAuthor = $email->getTicket()->authorToArray();
|
||||
if($ticketAuthor['email'] === $email->getSender()) {
|
||||
$session->clearSessionData();
|
||||
$session->createTicketSession($email->getTicket()->ticketNumber);
|
||||
$session->createSession($ticketAuthor['id'],
|
||||
$ticketAuthor['staff'],
|
||||
$email->getTicket()->ticketNumber);
|
||||
|
||||
$commentController->handler();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue