Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.
Hello,
I've setup an email template on Invoices with several fields, including "Origin" of the invoice : ${Origin}.
When trying to send an email using this template, ProjeQtOr throw an error :
Log file :
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] on file '/opt/projeqtor/model/persistence/SqlElement.php' at line (6933)
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] cause = Object of class Origin could not be converted to string
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] => #0 /opt/projeqtor/model/persistence/SqlElement.php (6933) -> preg_replace_callback()
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] => #1 /opt/projeqtor/model/persistence/SqlElement.php (5851) -> getMailDetailFromTemplate()
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] => #2 /opt/projeqtor/tool/sendMail.php (247) -> sendMailIfMailable()
When removing the ${Origin} field, everything works fine.
Issue confirmed
Ticket #5722 recorded
