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 over 7 years ago. Updated about 6 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 #1

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52519

Actions #2

Updated by Gerrit Code Review over 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52519

Actions #3

Updated by Gerrit Code Review over 7 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52519

Actions #4

Updated by Gerrit Code Review over 7 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52519

Actions #5

Updated by Gerrit Code Review over 7 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52519

Actions #6

Updated by Gerrit Code Review over 7 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52519

Actions #7

Updated by Gerrit Code Review over 7 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52519

Actions #8

Updated by Gerrit Code Review over 7 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52762

Actions #9

Updated by Anonymous over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Ralf Zimmermann over 7 years ago

  • Has duplicate Bug #81384: Form plugin crashs when using layout or partial paths added
Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF