You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See this issue.
Using a form field called message prevents it from being rendered in the email.antlers.htmltemplate.
How to Reproduce
Add a form with a field called message (in my case a textarea)
Add a template for the form
Submit the form and make sure an email goes out
Extra Detail
The code I used can be found here.
When you add a modifier to the field: {{ message | nl2br }} you actually get an error (got object, expected string). That might be a pointer.
Renaming the field to message_body solved the issue for me.
Environment
Statamic 3.0.0-beta.44 Pro
Laravel 7.25.0
PHP 7.4.6
No addons installed
Install method (choose one):
Fresh install from statamic/statamic
The text was updated successfully, but these errors were encountered:
This one seems to be caused by this chunk of code in Laravel (specifically line 266, where $data['message'] is being set to an Illuminate\Mail\Message instance) 🤔
Bug Description
See this issue.
Using a form field called
message
prevents it from being rendered in theemail.antlers.html
template.How to Reproduce
message
(in my case a textarea)Extra Detail
The code I used can be found here.
When you add a modifier to the field:
{{ message | nl2br }}
you actually get an error (got object, expected string). That might be a pointer.Renaming the field to
message_body
solved the issue for me.Environment
Statamic 3.0.0-beta.44 Pro
Laravel 7.25.0
PHP 7.4.6
No addons installed
Install method (choose one):
statamic/statamic
The text was updated successfully, but these errors were encountered: