[BUGFIX] Allow setting translateToMessage to empty 29/54429/3
authorSusanne Moog <susanne.moog@typo3.com>
Tue, 17 Oct 2017 23:06:30 +0000 (01:06 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 18 Oct 2017 06:23:47 +0000 (08:23 +0200)
commitd95b3b6943057113905264baef3f6028206f1ca3
treeb5cc06ffc02af1dd18c3ec6b401656abcafae95e
parent3b683e13686eaa0d6eb756b75d62cb8835e269d9
[BUGFIX] Allow setting translateToMessage to empty

Unsetting TCEMAIN.translateToMessage was not possible
due to a default fallback to a hardcoded string in
data handler.

This patch sets the default via PageTSConfig and
simplifies the condition / fallback logic.

Change-Id: Ie06410126a83de0e158c43cbfd6ee3d45176c363
Resolves: #82523
Releases: master
Reviewed-on: https://review.typo3.org/54429
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/ext_localconf.php