Commit f564ae77 authored by Benjamin Franzke's avatar Benjamin Franzke Committed by Oliver Hader
Browse files

[BUGFIX] Use named export of BackendExceptionModule in FormEngine

The BackendException class is exported as named (not as default)
export in BackendException.ts, and therefore the module consumer
needs to access the BackendException property of the module.
Fix FormEngine to do so.

Releases: master, 10.4
Resolves: #92249
Change-Id: Id416e7ee4753db033301c43482b786c38075e13a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65688


Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
parent 0e1d8707
......@@ -32,7 +32,7 @@ define(['jquery',
'TYPO3/CMS/Backend/Severity',
'TYPO3/CMS/Backend/BackendException',
'TYPO3/CMS/Backend/Event/InteractionRequestMap'
], function($, FormEngineValidation, DocumentSaveActions, Icons, Modal, MessageUtility, Severity, BackendException, InteractionRequestMap) {
], function($, FormEngineValidation, DocumentSaveActions, Icons, Modal, MessageUtility, Severity, BackendExceptionModule, InteractionRequestMap) {
/**
* @param {InteractionRequest} interactionRequest
......@@ -393,7 +393,7 @@ define(['jquery',
*/
FormEngine.consume = function(interactionRequest) {
if (!interactionRequest) {
throw new BackendException('No interaction request given', 1496589980);
throw new BackendExceptionModule.BackendException('No interaction request given', 1496589980);
}
if (interactionRequest.concernsTypes(FormEngine.consumeTypes)) {
var outerMostRequest = interactionRequest.outerMostRequest;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment