mailtrain
mailtrain copied to clipboard
Error sending campaing when merge tag is a number
I created a new Field with Integer value [MERGE_MONTH]
If I use this field in the email template, it fails with value.replace is not a function.
I tried to debug this a bit and it looks like it fails at this place
let searchVal = '%' + params.search.value.replace(/\\/g, '\\\\').replace(/([%_])/g, '\\$1') + '%';
here params.search.value doesnt seem to be a string and hence there is no replace function to it.
Is this v1 or v2? If it's v2, could you post exact steps how to replicate the issue, a screenshot and the exact file and line number where it fails? Thanks.
It's version 2. The exact bug is in the line above: when params.search.value is integer it doesnt have replace function (like string does)
replicate by creating a number tag and then using it in a template.
Same here, seems a duplicate of #809
We are going to start with the development and testing of mailtrain v3 in the next weeks.
You are welcome to help us with the testing as soon as the first release candidate is available.
If you have modules/tasks that needs help you can create tickets and I can put some of our team members to volunteer time