[TASK] Extbase: Traverse validation results until first error 20/35220/3
authorSebastian Michaelsen <sebastian@michaelsen.io>
Wed, 10 Dec 2014 09:24:59 +0000 (10:24 +0100)
committerSteffen Müller <typo3@t3node.com>
Sat, 13 Dec 2014 15:05:50 +0000 (16:05 +0100)
commit46bed8083c6cc6519ded31ca99d9a7da518f02cc
tree932189ad6613adbb5592bf856f7be1c9ecf317f5
parent41e743de5804e24fe14ff1c0cecb666d2ff9a78f
[TASK] Extbase: Traverse validation results until first error

When deciding whether to call the action method or error method it's
sufficient to traverse results until the first error.
To improve performance break the foreach on first
found (not ignored) error.

Resolves: #63726
Releases: master, 6.2
Change-Id: I988cb5c8ac20518c359db75bb46fe6702c549cf6
Reviewed-on: http://review.typo3.org/35220
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php