spree/spree — pull request #2214 by laurens (2012-11-14 09:45:18+00:00)
Title: Validate format of email only if present

When no email address is given, Spree shows both an error about the missing value and an error about wrong format of the email address.

When no email address is given, only the error about the presence should be shown.