in2code-de / powermail

This is the official repository of the TYPO3 extension powermail! Powermail is a well-known, editor-friendly, powerful and easy mailform extension for TYPO3
https://in2code.de
86 stars 169 forks source link

Issue when submitting multiple selection check box in powermail 12.3.1 #1027

Open pitssavinmb opened 2 months ago

pitssavinmb commented 2 months ago

The form field "tx_powermail_pi1[field][eintritt][][]" is invalid. Reason: "[]" used not as last argument, but somewhere in the middle (like foo[][bar]). Capture

hannesbochmann commented 2 months ago

I can confirm this issue, too.

mschwemer commented 2 months ago

I cannot reproduce the issue.

Can you please provide more information?

Powermail version? TYPO3 version? php Version? Example form definition?

TIA

hannesbochmann commented 2 months ago

powermail: 12.3.1 (furthermore powermail_cond 11.2.2 is installed) TYPO3: 12.4.15 PHP: 8.2.17

Any form with a checkbox element will produce this error. This seems to happen since the last TYPO3 update.

hannesbochmann commented 2 months ago

This error happens with TYPO3 12.4.14, too. So it's not because of the latest update. And the error happens with powermail 12.3.2, too as well.

hannesbochmann commented 2 months ago

Problem solved! The template Resources/Private/Partials/Form/Field/Check.html was overwritten in our installation and changes weren't taken over. In this case it was the missing multiple="true" attribute.

mschwemer commented 2 months ago

@hannesbochmann Thanks for the feedback :+1:

@pitssavinmb Can you check your templates against the last comment and give feedback? TIA

hannesbochmann commented 2 months ago

Just to be more precise. With "changes weren't taken over" I mean the changes in templates in powermail from version 8 to 12.