plone/plone.app.z3cform — pull request #1 by davidjb (2012-03-26 06:25:25+00:00)
Title: Prevent empty error divs from being generated on forms

At present, if errors happens on submission of a plone.app.z3cform, a number of error divs are created at the top of the form and they are empty if the error is associated with a given field. Default Plone 4 theming sees the red outline of each of the given 'empty' error message divs.

This fix only displays the entire div if there is an error to be displayed.