Skip to content
Snippets Groups Projects
Commit 3324deec authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Benjamin Franzke
Browse files

[BUGFIX] Catch non-okayish responses in Modal requests

If the modal component starts an AJAX request that results in a
non-okayish response (>= 400), the underlying fetch() throws an error
that is now caught.

If the response sends an optional body, it is rendered in the modal. If
an empty body is received, a fallback text explaining the issue is
rendered instead.

Resolves: #96852
Releases: main, 11.5
Change-Id: I986c0b92d742fa76b773dd3f3a976a05a3f6b546
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73478


Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 52db75db
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