[Flow] Validation > Exception instead of going back to newAction

Bastian Waidelich bastian at typo3.org
Thu Dec 5 12:01:53 CET 2013


Axel Wüstemann wrote:

Hi Axel,

> I put the createAction and the newAction to pastebin
> http://pastebin.com/0M5e1Qr8

Ok, this is what happens (I believe):
You submit the form and the $depositInspection is passed to the 
createAction. But it can't be validated because the "date" property is 
not set yet (read "failed to pass validation with 1 error(s): date: This 
property is required.").
So the errorAction()[1] is invoked and for some reason fails to forward 
you to the newAction. A snippet from the fluid form might help us 
detecting the issue.. Or you debug the error action.

Out of curiosity: why do your repositories have *AsOptions() methods? 
And what does __buildDateTime() do?

[1] 
https://git.typo3.org/Packages/TYPO3.Flow.git/blob/HEAD:/Classes/TYPO3/Flow/Mvc/Controller/ActionController.php#l519

-- 
Bastian Waidelich


More information about the Flow mailing list