[BUGFIX] No placeholder attribute in backend forms
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / FormEngine.php
index c5a5e59..aa3b8ef 100644 (file)
@@ -6517,7 +6517,7 @@ TBE_EDITOR.customEvalFunctions[\'' . $evalData . '\'] = function(value) {
         * @return string
         */
        protected function getPlaceholderAttribute($table, $field, array $config, array $row) {
-               if (isset($config['mode']) && $config['mode'] === 'useOrOverridePlaceholder') {
+               if (!isset($config['mode']) || $config['mode'] !== 'useOrOverridePlaceholder') {
                        return '';
                }