osTicket:v1.18.1 (0375576)
Apache/2.4.52 (Ubuntu)
MySQL 8.0.37
PHP 8.2.20
Hi,
I am trying to create a plugin that can change the subject of a ticket based on specific ID in incoming e-mail. I understand that the subject is in multiple places - different for showing on web UI and elsewhere for mail subject. Could someone help to point me in the right direction? My plugin changes the database directly, unfortunately, the autoreply always uses the original (not changed) mail subject.
Plugin changes two tables - ost_ticket__cdata and ost_form_entry_values. When I look into both tables it actually shows correctly changed data:
SELECT * FROM ost_ticket__cdata;
| 153 | ext #[126366] New Test Message | 2 |
SELECT * FROM ost_form_entry_values;
| 197 | 20 | ext #[126366] New Test Message | NULL |
| 197 | 22 | Normal | 2 |
But the autoreply shows still the old Subject. Any following messages have the changed subject except for the very first reply.
Thank you for any guidance! Have a pleasant weekend.