sunnysideup / silverstripe-ecommerce

The original Silverstripe E-commerce.
http://www.silverstripe-ecommerce.com
Other
26 stars 25 forks source link

Fix validation checks. #20

Closed hailwood closed 9 years ago

hailwood commented 9 years ago

->validate() returns a ValidationResult which when checked in an If will always return true - we need to check if the validation result is actually valid otherwise we get hit with Uncaught ValidationException when we try to save.