[BUGFIX] Set opt-in for override checkbox in TCA input elements 89/56989/2
authorTim Schreiner <schreiner.tim@gmail.com>
Thu, 29 Mar 2018 21:21:40 +0000 (23:21 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 17 May 2018 12:48:04 +0000 (14:48 +0200)
commitd2b4e2f8b49704d33a8cc54fdda50490e50fa7ae
tree08580298f4ec3d2458eb0ff0ea9e9d21a3b0d1ea
parent88e332a9e50610cb935906d97e8c03bf4f234983
[BUGFIX] Set opt-in for override checkbox in TCA input elements

When useOrOverridePlaceholder mode is used for TCA input type,
use opt-in for the checkbox when placeholder is empty.

In some cases, the placeholder can be empty. Especially when the
placeholder uses data from another field. When information is added
to the corresponding field, the input field does not take this in account
because the override checkbox is set by default.

This can lead to problems for title and alternative fields in the
sys_file_metadata table. When adding a file reference and setting the
title or alternative field afterwards in the original file, the reference
is still using the empty override from file reference.

Resolves: #84563
Releases: master, 8.7
Change-Id: I84a37d55a48464b6249fc8bcee405a7cd909016a
Reviewed-on: https://review.typo3.org/56989
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Form/Element/InputColorPickerElement.php
typo3/sysext/backend/Classes/Form/Element/InputDateTimeElement.php
typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php
typo3/sysext/backend/Classes/Form/Element/InputTextElement.php
typo3/sysext/backend/Classes/Form/Element/TextElement.php