[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. Resolves: #91148 Releases: main, 12.4 Change-Id: I189555f459a3a96594e9c708b4ee71c908efd970 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75117 Tested-by:Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Nikita Hovratov <nikita.h@live.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81508
Showing
- Build/Sources/Sass/component/_diff.scss 0 additions, 6 deletionsBuild/Sources/Sass/component/_diff.scss
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php 18 additions, 10 deletions...es/Controller/ContentElement/ElementHistoryController.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 2 additions, 3 deletionstypo3/sysext/backend/Resources/Public/Css/backend.css
- typo3/sysext/backend/Tests/Functional/View/ValueFormatter/Fixtures/FlexFormValueFormatter/FlexFormDataStructure.xml 82 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 97 additions, 0 deletions...tional/View/ValueFormatter/FlexFormValueFormatterTest.php
- typo3/sysext/core/Classes/Utility/DiffGranularity.php 26 additions, 0 deletionstypo3/sysext/core/Classes/Utility/DiffGranularity.php
- typo3/sysext/core/Classes/Utility/DiffUtility.php 4 additions, 2 deletionstypo3/sysext/core/Classes/Utility/DiffUtility.php
- typo3/sysext/workspaces/Classes/Controller/Remote/RemoteServer.php 25 additions, 31 deletions...ext/workspaces/Classes/Controller/Remote/RemoteServer.php
- typo3/sysext/workspaces/Classes/Service/HistoryService.php 18 additions, 25 deletionstypo3/sysext/workspaces/Classes/Service/HistoryService.php
- typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php 0 additions, 4 deletions...kspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php
Please register or sign in to comment