From 77bca80cbf1a0fb8f52989946ea24c5617ef4c5b Mon Sep 17 00:00:00 2001
From: Andreas Fernandez <a.fernandez@scripting-base.de>
Date: Mon, 1 May 2017 11:41:28 +0200
Subject: [PATCH] [BUGFIX] Add `config.contentObjectExceptionHandler` to
 tsref.xml

The TypoScript setting `config.contentObjectExceptionHandler` was
introduced in TYPO3 7.0 but is still missing in tsref.xml. This patch
adds the configuration.

Resolves: #81093
Releases: master, 8.7, 7.6
Change-Id: Ib46891699aca91329aef302d87e562ac317892f2
Reviewed-on: https://review.typo3.org/52667
Reviewed-by: Henrik Elsner <helsner@dfau.de>
Tested-by: Henrik Elsner <helsner@dfau.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
---
 typo3/sysext/t3editor/Resources/Private/tsref.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/typo3/sysext/t3editor/Resources/Private/tsref.xml b/typo3/sysext/t3editor/Resources/Private/tsref.xml
index 1b037ab69da7..938dfca4a6cb 100644
--- a/typo3/sysext/t3editor/Resources/Private/tsref.xml
+++ b/typo3/sysext/t3editor/Resources/Private/tsref.xml
@@ -270,6 +270,19 @@ This value is overridden by the value set in the page-record (field="cache_timeo
 		<property name="content_from_pid_allowOutsideDomain" type="boolean">
 			<description><![CDATA[Using the "Show content from this page instead" feature allows you to insert content from the current domain only. Setting this option will allow content included from anywhere in the page tree!]]></description>
 			<default><![CDATA[
+]]></default>
+		</property>
+		<property name="contentObjectExceptionHandler" type="array">
+			<description><![CDATA[Exceptions which occur during rendering of content objects (typically plugins) will now be caught by default in production context and an error message is shown along with the rendered output.
+
+			Use "1" for the default exception handler (enabled by default in production context)
+			Use "0" to disable the default exception handler
+			Use a class name for individual exception handlers
+
+			See TSref for details:
+			https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#contentobjectexceptionhandler
+]]></description>
+			<default><![CDATA[
 ]]></default>
 		</property>
 		<property name="debug" type="boolean">
-- 
GitLab