[TASK] Extbase: Traverse validation results until first error 89/35389/2
authorSteffen Müller <typo3@t3node.com>
Sat, 13 Dec 2014 15:11:31 +0000 (16:11 +0100)
committerSteffen Müller <typo3@t3node.com>
Sat, 13 Dec 2014 15:15:57 +0000 (16:15 +0100)
commit657e177f5404ed28eeb21bd4c1af76d0bdadd292
tree4e260cd2634857adb17c1d7b8c1b55bcac072229
parent47f10de52bf17021d202a82e955c3a63aac6b996
[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/35389
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php