Actions
Bug #98077
closedFormEditor display "undefined" for element types
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
Actions