[BUGFIX] Placeholder attribute without useOrOverridePlaceholder 33/30433/6
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Sat, 15 Nov 2014 14:14:20 +0000 (15:14 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 9 Dec 2014 00:09:12 +0000 (01:09 +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/30433
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Ernesto Baschny <ernst@cron-it.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Form/FormEngine.php

index 972ab5f..54be028 100644 (file)
@@ -4529,10 +4529,6 @@ class FormEngine {
         * @return string
         */
        public 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:'