[BUGFIX] EXT:form - let the CountValidator provide its arguments 35/52335/6
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Mon, 3 Apr 2017 11:40:56 +0000 (13:40 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 27 Apr 2017 14:52:20 +0000 (16:52 +0200)
commita23d22fb13611ea1170ad750a75d245b048309a0
tree61ee1e51101c4243a426e15438d2a35812c9debc
parentfb2bc39e1bd14a5922dbe9884801b9dc42eab15b
[BUGFIX] EXT:form - let the CountValidator provide its arguments

* Provide the validator's arguments to TYPO3\CMS\Extbase\Validation\Error
* Prevent PHP errors if sprintf is tried to be called in case of empty
  argument arrays

Resolves: #80653
Releases: master, 8.7
Change-Id: I0f399501bc1091aa0034bd4de8652564535ce3f0
Reviewed-on: https://review.typo3.org/52335
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/form/Classes/Mvc/Validation/CountValidator.php
typo3/sysext/form/Classes/Service/TranslationService.php
typo3/sysext/form/Resources/Private/Language/locallang.xlf