[BUGFIX] Display human-readable preview of FlexForm values
This change transforms the processed record of FlexForms into a human-readable format. This is especially useful when comparing changes in the history module or the workspaces diff view. The diff needs to be formatted with line breaks and tabs as the output is passed through "htmlspecialchars" before it will be displayed. The white-space css setting needs to be changed to "pre-wrap", because this is the only setting where line breaks and tabs are kept and the text will still be word-wrapped. The old view is used as a fallback, if no record is available (import preview). Resolves: #91148 Releases: main, 11.5 Change-Id: Iab1dfb59f98dc712b8984a8087525634b5ec4ebd Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64260 Tested-by:Simon Schaufelberger <simonschaufi+typo3@gmail.com> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by: Simon Schaufelberger...
Showing
- Build/Sources/Sass/component/_diff.scss 1 addition, 1 deletionBuild/Sources/Sass/component/_diff.scss
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php 14 additions, 5 deletions...es/Controller/ContentElement/ElementHistoryController.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 5 additions, 1 deletiontypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Classes/View/ValueFormatter/FlexFormValueFormatter.php 301 additions, 0 deletions...nd/Classes/View/ValueFormatter/FlexFormValueFormatter.php
- typo3/sysext/backend/Resources/Public/Css/backend.css 1 addition, 1 deletiontypo3/sysext/backend/Resources/Public/Css/backend.css
- typo3/sysext/backend/Tests/Functional/View/ValueFormatter/Fixtures/FlexFormValueFormatter/FlexFormDataStructure.xml 98 additions, 0 deletions...Fixtures/FlexFormValueFormatter/FlexFormDataStructure.xml
- typo3/sysext/backend/Tests/Functional/View/ValueFormatter/Fixtures/FlexFormValueFormatter/FlexFormValue.xml 33 additions, 0 deletions...rmatter/Fixtures/FlexFormValueFormatter/FlexFormValue.xml
- typo3/sysext/backend/Tests/Functional/View/ValueFormatter/Fixtures/FlexFormValueFormatter/Language/Locallang.xlf 39 additions, 0 deletions...er/Fixtures/FlexFormValueFormatter/Language/Locallang.xlf
- typo3/sysext/backend/Tests/Functional/View/ValueFormatter/Fixtures/FlexFormValueFormatter/ValuePreview.txt 22 additions, 0 deletions...ormatter/Fixtures/FlexFormValueFormatter/ValuePreview.txt
- typo3/sysext/backend/Tests/Functional/View/ValueFormatter/FlexFormValueFormatterTest.php 96 additions, 0 deletions...tional/View/ValueFormatter/FlexFormValueFormatterTest.php
- typo3/sysext/workspaces/Classes/Controller/Remote/RemoteServer.php 14 additions, 1 deletion...ext/workspaces/Classes/Controller/Remote/RemoteServer.php
- typo3/sysext/workspaces/Classes/Service/HistoryService.php 13 additions, 4 deletionstypo3/sysext/workspaces/Classes/Service/HistoryService.php
Please register or sign in to comment