Skip to content

Commit

Permalink
[BUGFIX] Spam Notification Log shows "Array" instead of selected values
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmschuler committed Sep 12, 2023
1 parent a527ef2 commit bb49379
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Resources/Private/Templates/Log/SpamNotification.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

{namespace vh=In2code\Powermail\ViewHelpers}
----------------------------------------------------

<f:format.date format="Y-m-d H:i:s">{time}</f:format.date>
Expand All @@ -9,8 +9,11 @@
<f:for each="{messages}" as="message">- {message}
</f:for>
Given Form variables:
<f:for each="{mail.answers}" as="answer">- {answer.field.title}: {answer.value}
</f:for>
<f:for each="{mail.answers}" as="answer"><f:if condition="{vh:condition.isArray(val:answer.value)}">
<f:then>{answer.field.title}: <f:for each="{answer.value}" as="subValue" iteration="index"><f:if condition="{subValue}"><vh:misc.manipulateValueWithTypoScript answer="{answer}" type="{type}">{subValue}</vh:misc.manipulateValueWithTypoScript><f:if condition="{index.isLast}"><f:else>, </f:else></f:if>
</f:if></f:for></f:then>
<f:else>{answer.field.title}: {answer.value}
</f:else></f:if></f:for>
<f:if condition="{ipAddress}">Senders IP addess: {ipAddress}</f:if>

Complete request array:
Expand Down

0 comments on commit bb49379

Please sign in to comment.