Hello,
I had the same issue by a client of me.
Following steps were done:
An agent creates a new Ticket in department A and claimed this ticket.
The department and assignment are fine.
Then the user responses to this ticket by email.
Now, the message was posted and SYSTEM referred this ticket to department B.
Department A and B have the same department email.
This department email has in its settings department B as default department...
I think the problem causes at the following point in class.ticket.php in function systemReferral($emails)
This function is called in class.thread.php in the function postEmail($mailinfo, $entry)
Why do the System refer any ticket here?
Only agents should refer tickets...
I disabled the function systemReferral (class.ticket.php) by adding a return; before referring...