powermail icon indicating copy to clipboard operation
powermail copied to clipboard

Issue when submitting multiple selection check box in powermail 12.3.1

Open pitssavinmb opened this issue 1 year ago • 7 comments

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

pitssavinmb avatar May 14 '24 12:05 pitssavinmb

I can confirm this issue, too.

hannesbochmann avatar May 15 '24 11:05 hannesbochmann

I cannot reproduce the issue.

Can you please provide more information?

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

TIA

mschwemer avatar May 21 '24 08:05 mschwemer

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 avatar May 21 '24 09:05 hannesbochmann

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 avatar May 21 '24 11:05 hannesbochmann

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.

hannesbochmann avatar May 21 '24 12:05 hannesbochmann

@hannesbochmann Thanks for the feedback :+1:

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

mschwemer avatar May 21 '24 13:05 mschwemer

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

hannesbochmann avatar May 21 '24 13:05 hannesbochmann