Project

General

Profile

Actions

Bug #80919

closed

Form CE runs into TypeError when a number is used as option key for a finisher

Added by Daniel Goerz about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Form Framework
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.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #81384: Form plugin crashs when using layout or partial pathsClosedRalf Zimmermann2017-05-30

Actions
Actions

Also available in: Atom PDF