[TASK] Add max to the overrideable fields of type text 35/52035/2
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 13 Mar 2017 20:05:15 +0000 (21:05 +0100)
committerBenni Mack <benni@typo3.org>
Mon, 13 Mar 2017 20:33:22 +0000 (21:33 +0100)
The configuration "max" of TCA type "text" should be overridable
via TsConfig. This makes it possible limit textarea input by using
TsConfig like

TCEFORM.tx_table.teaser.config.max = 20

Resolves: #80265
Releases: master
Change-Id: I84b0dc5ce240b0da1f5619353e8e525fba685e2d
Reviewed-on: https://review.typo3.org/52035
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php

index d46d417..ce61084 100644 (file)
@@ -44,7 +44,7 @@ class FormEngineUtility
      */
     protected static $allowOverrideMatrix = [
         'input' => ['size', 'max', 'readOnly'],
-        'text' => ['cols', 'rows', 'wrap', 'readOnly'],
+        'text' => ['cols', 'rows', 'wrap', 'max', 'readOnly'],
         'check' => ['cols', 'readOnly'],
         'select' => ['size', 'autoSizeMax', 'maxitems', 'minitems', 'readOnly', 'treeConfig'],
         'group' => ['size', 'autoSizeMax', 'max_size', 'maxitems', 'minitems', 'readOnly'],