[BUGFIX] Placeholder attribute without useOrOverridePlaceholder 75/35175/2
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Tue, 9 Dec 2014 00:11:29 +0000 (01:11 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 10 Dec 2014 12:17:54 +0000 (13:17 +0100)
The placeholder configuration for a TCA field will now be considered
independently from the "mode" being set to "useOrOverridePlaceholder".
If a placeholder is set in the TCA it will be rendered. The mode
setting only changes the behavior of the NULL checkbox.

Resolves: #59129
Releases: master, 6.2
Change-Id: Ice7681d644623a5e94cbdd22743ddf5aab8919a9
Reviewed-on: http://review.typo3.org/35175
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Form/FormEngine.php

index 567ed46..eaece1d 100644 (file)
@@ -6719,10 +6719,6 @@ TBE_EDITOR.customEvalFunctions[\'' . $evalData . '\'] = function(value) {
         * @return string
         */
        protected function getPlaceholderAttribute($table, $field, array $config, array $row) {
-               if (!isset($config['mode']) || $config['mode'] !== 'useOrOverridePlaceholder') {
-                       return '';
-               }
-
                $value = $this->getPlaceholderValue($table, $field, $config, $row);
 
                // Cleanup the string and support 'LLL:'