Skip to content
Snippets Groups Projects
Commit f145d7e3 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/+/73448


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 43106cad
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