splittingred/FormIt — pull request #80 by Jako (2013-03-11 15:31:53+00:00)
Title: preHooks and addError problem

I have written a custom captcha and facing now the following problem:

The captcha is called as preHook (because it has to display the captcha). It is checking $_POST for the form field itself and if the check is successfull the preHook is calling addError and returns with false.

This error seems not to be mentioned later in the request->postprocess, so the form is posted even with the error in preHook.

Checking for errors in preHooks could avoid that problem. So the snippet does not have to be called twice as pre- and postHook, which is the only solution at the moment.