-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disappearance of a substitution variable when sending email to multiple recipients #31310
Comments
Une solution ? |
Le bug est toujours présent dans la version 20.0.2 |
You are writing "when you send an email to several Third Parties via the invoice list". One email will be send, containing all the invoices, for each email in the destination field. |
I mean when you check multiple invoices in invoices list, then you select "send an email" and it send email to the third party attached to the invoice checked. "When you are in the list of invoices, you check several invoices and click on "select an action" and click on "send email", if the selected mail template contains the variable "ONLINE_PAYMENT_URL" then when you apply this mail template, this variable is absent (I dont mean present in the body and then the recipient does not receive the link) from the body of the mail." |
The functionnality is not the same for me : You say : "I mean when you check multiple invoices ... and it send email to the third party attached to the invoice checked." On my installation, this does not send an email "to the third party attached to the invoice checked". |
OK I think I am missing informations on my thirdparties, on a production instance, it seems to work as you describes... I look in more precisely. |
Yes this is what I am doing but on my fresh install for testing, I had not the same behaviour, soi I tried on a production instance and I can see exactly what you said, so now I am working on it. |
I fixed it, since version 16, when we do not click on "one email per recipient". |
@corent1lb Can you tell me if the fix solves your problem ? |
Nope, it don't solve the problem and the modification in html.formmail.class.php cause an error 500 when I want to modify an email template |
On my fresh 20 I do not see an error... I have warnings (already there, not caused by the fix), but this is working.
Can you send me a screen shot or at least more debugging information ? |
Hi, |
I've update to 20.0.3 and there is still the same problem. Any log that can help to fin why ? |
Bug
Some substitution variables when used in an email template are not displayed in the body of the email (when writing) when you send an email to several Third Parties via the invoice list
Dolibarr Version
20.0.0
Environment PHP
8.2.22
Environment Database
MariaDB 11.4.3
Steps to reproduce the behavior and expected behavior
When you are in the list of invoices, you check several invoices and click on "select an action" and click on "send email", if the selected mail template contains the variable "ONLINE_PAYMENT_URL" then when you apply this mail template, this variable is absent (I dont mean present in the body and then the recipient does not receive the link) from the body of the mail.
I use other variables in my mail template and it works correctly for the others, only this one is problematic.
Attached files
My email template :
The email template when selected in invoices list :
The text was updated successfully, but these errors were encountered: