Skip to content

SpamNotifyMail doesn't handle answer array values #910

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

Closed

Conversation

jpmschuler
Copy link
Contributor

The SpamNotificationMail either shows "Array" instead of selected values or dies with an exception for an invalid Array to String typecast.

Easily fixed by using the exact same approach as all other templates do.

fixes #851

@mschwemer mschwemer deleted the branch in2code-de:master December 28, 2023 10:20
@mschwemer mschwemer closed this Dec 28, 2023
@mschwemer mschwemer reopened this Dec 28, 2023
@mschwemer mschwemer changed the base branch from develop to master June 7, 2024 10:46
@mschwemer
Copy link
Collaborator

Hi,

I needed to change the base branch as master is now our default. Unfortunately it has now merge conflicts. Sorry for that.

May I ask you to elaborate on the statement: Easily fixed by using the exact same approach as all other templates do. Which templates were the "template" for this change?

Additionally, it would be cool, if you rebase it to the current master.

Thanks for your contribution.

@Patta
Copy link
Contributor

Patta commented Jun 11, 2024

@mschwemer

Easily fixed by using the exact same approach as all other templates do

For example the PowermailAll Mail Partial:

<f:if condition="{vh:condition.isArray(val:answer.value)}">

@jpmschuler
Copy link
Contributor Author

Seems this was fixed in the non-public early access branches via 36eb438 and is already available in master

@jpmschuler jpmschuler closed this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP Error: Array to string conversion in SpamNotification-Mail with Checkboxes
3 participants