If a date field is mandatory but the user doesn't provide a date, the form will be reloaded upon submit but no error message will be given to the user. The call to form_set_error() has omitted the $component_key parameter, and so the form error is not properly set.

After applying this patch, the user will see an appropriate error message when attempting to submit a form with a mandatory date field that is not filled in.

CommentFileSizeAuthor
date-validate.patch530 bytesatipton

Comments

quicksketch’s picture

Status: Needs review » Fixed

Thanks! Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.