[BUGFIX] Show remaining chars for InputElement only if defined 12/41312/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 15 Jul 2015 15:22:47 +0000 (17:22 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Wed, 15 Jul 2015 15:51:50 +0000 (17:51 +0200)
commit3ac1161bcce0af607c9f28d8db13a7baeb1a2009
tree0591a5a6535dbcb4f5d9e405a8ac8a060d6fd9ec
parent6833323502aefb21a15de19d29e7196a2c8f57c6
[BUGFIX] Show remaining chars for InputElement only if defined

If no max is defined in the TCA the remaining characters can not be
determined without checking the DB. It is not a good idea to show a
hardcoded size of 256.

Change the code to be in sync with the TextElement and check the max
configuration first.

Change-Id: Ia74ea88e22b6344e8ce1a44e3795dc11d4466dba
Resolves: #68176
Releases: master
Reviewed-on: http://review.typo3.org/41312
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Form/Element/InputElement.php