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
using the Lunar Starter Kit, only changes were to add the mailer and set the db.
Expected Behaviour:
The status update completes
The email is sent
No Errors
Actual Behaviour:
Get a stack error: Only arrays and Traversables can be unpacked
Points to vendor/lunarphp/lunar/src/Support/Actions/Traits/UpdatesOrderStatus.php:135
**Note: if I do not check any emails, and just hit submit, the email is sent as expected and there is no error.
Steps To Reproduce:
On an order detail page, click the update status button
Click the checkbox for my mailer.
Select one or more client email checkboxes.
Click Submit
If I dump the $data on UpdateOrderStatus.php file near line 135, the email address key is a boolean instead of an array with the selected email addresses. When not selecting any as indicated above, the value is an array with the email address and the mail sends as expected.
I note the html for the checkbox has value="[object Object]" .
I was able to track it this far, but am unable to determine where the email addresses are actually collected.
Thanks,
The text was updated successfully, but these errors were encountered:
As an update, if there is both a biling and shipping address this works as expected. Two checkboxes are loaded with a value="[email protected]" for each. Emails are sent correctly whether you select one or both checkboxes.
When one of the addresses has no email, and only one checkbox is loaded, we get the value="[object Object]" for the single checkbox.
Expected Behaviour:
The status update completes
The email is sent
No Errors
Actual Behaviour:
Get a stack error: Only arrays and Traversables can be unpacked
Points to vendor/lunarphp/lunar/src/Support/Actions/Traits/UpdatesOrderStatus.php:135
**Note: if I do not check any emails, and just hit submit, the email is sent as expected and there is no error.
Steps To Reproduce:
On an order detail page, click the update status button
Click the checkbox for my mailer.
Select one or more client email checkboxes.
Click Submit
If I dump the $data on UpdateOrderStatus.php file near line 135, the email address key is a boolean instead of an array with the selected email addresses. When not selecting any as indicated above, the value is an array with the email address and the mail sends as expected.
I note the html for the checkbox has value="[object Object]" .
I was able to track it this far, but am unable to determine where the email addresses are actually collected.
Thanks,
The text was updated successfully, but these errors were encountered: