Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Catch form errors and display speaking error message
When having a broken form configuration, the formEditor is not able to load because of JavaScript errors. These errors are not fixable for an editor as they most likely happen because of admins/integrators changing and breaking the form. Instead of displaying a loading indicator without a hint on the error that happened, a top level catch displaying a flash message has now been implemented. Resolves: #84595 Releases: master, 9.5 Change-Id: I44cf49d8e344629bc1a3250eade6267c7debdf00 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60598 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Mathias Brodala <mbrodala@pagemachine.de> Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de> Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de> Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
- Loading branch information
1 parent
cee5f57
commit 2081a5d
Showing
3 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...form/Resources/Private/Language/locallang_formEditor_failSafeErrorHandling_javascript.xlf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff"> | ||
<file t3:id="1877653884" source-language="en" datatype="plaintext" original="messages" date="2019-04-27T03:38:32Z" product-name="form"> | ||
<header/> | ||
<body> | ||
<trans-unit id="formEditor.error.headline" xml:space="preserve"> | ||
<source>Oops! Something went wrong.</source> | ||
</trans-unit> | ||
<trans-unit id="formEditor.error.message" xml:space="preserve"> | ||
<source>Please contact your administrator.</source> | ||
</trans-unit> | ||
<trans-unit id="formEditor.error.technicalReason" xml:space="preserve"> | ||
<source>Technical Reason:</source> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters