Actions
Bug #80919
closedForm CE runs into TypeError when a number is used as option key for a finisher
Status:
Closed
Priority:
Should have
Assignee:
Category:
Form Framework
Target version:
Start date:
2017-04-20
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Reproduce:
Use custom PartialPath for a Finisher, e.g.:
finishers: - identifier: 'EmailToReceiver' options: subject: 'My Subject' recipientAddress: info@example.com recipientName: 'Some Company' senderAddress: '{email}' senderName: '{name}' partialRootPaths: 20: 'EXT:my_form/Resources/Private/Partials/' templatePathAndFilename: 'EXT:my_form/Resources/Private/Templates/Mails/ContactReceiver.html'
With this configuration the form CE runs into a TypeError Exception because the key '20' (from the partialRootPaths) is returned as an integer from a method (\TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook::extractDottedPathToLastElement()
) that has to return a string and has strict typing enabled.
Actions