Project

General

Profile

Actions

Bug #58598

closed

tx_form breaks on custom label

Added by Matthias Kuchem over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2014-05-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I feel like this is a huge issue and there are several bugs opened years ago, covering parts of it, but there still is no fix in sight.
When tx_form is used and it's frontend output is changed, according to the documentation, with the layout configuration (either tt_content.mailform.20.layout or in the FORM object itself), the resulting E-Mail is unreadable, because the MailPostProcessor tries to add these styles in the mail. Even worse, if you do change the label, the sending process breaks with

#1: PHP Catchable Fatal Error: Argument 3 passed to TYPO3\CMS\Form\View\Mail\Html\Element\AbstractElementView::replaceNodeWithFragment() must be an instance of DOMNode, null given, called in /var/www/typo3_src-6.2.2/typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php on line 111 and defined in /var/www/typo3_src-6.2.2/typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php line 228

A minimal example can be created by setting the label layout to literally anything, even the default value, according to doc, breaks when set manual.

tt_content.mailform.20.layout.label = <label><labelvalue /><mandatory /><error /></label>

When you do submit any form with this conf, the above error is thrown.


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #39138: sysEXT:form checkbox send as input field in EMailClosedPatrick Broens2012-07-20

Actions
Related to TYPO3 Core - Bug #37349: Layout change modifies email outputClosed2012-05-21

Actions
Related to TYPO3 Core - Bug #32463: New Form ext throws error on missing wrapsClosed2011-12-12

Actions
Related to TYPO3 Core - Bug #31951: Own checkbox layout breaks HTML mailClosed2011-11-20

Actions
Actions

Also available in: Atom PDF