Project

General

Profile

Actions

Bug #98077

closed

FormEditor display "undefined" for element types

Added by Timo Webler over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2022-08-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Since version 10.4.29 the form editor display undefined for the element types.

The change from [SECURITY] Ensure text preview of multivalue items in form editor introduced these behaviour.

The information about the type is not available within the form element definition.

These affect only TYPO3 10. In TYPO3 11 the @label is used here. https://github.com/TYPO3/typo3/commit/c36447f2f4d719564993cfabe18f7fbeb565b9b3

Patch:

Index: typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js b/typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js
--- a/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js
+++ b/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js    (date 1659683036247)
@@ -923,7 +923,7 @@

       getHelper()
         .getTemplatePropertyDomElement('_type', template)
-        .append(document.createTextNode(getFormElementDefinition(formElement, 'type')));
+        .append(document.createTextNode(formElement.get('type')));
       getHelper()
         .getTemplatePropertyDomElement('_identifier', template)
         .append(document.createTextNode(formElement.get('identifier')));

Files

image.png (7.39 KB) image.png Timo Webler, 2022-08-05 07:11

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #98389: Text “undefined” when hovering over a field in the editor since update to TYPO3 10Closed2022-09-21

Actions
Actions

Also available in: Atom PDF