Please sign in to comment.
Prevent variations being created/returned without parents
Nasty bug discovered by @RiaanKnoetze where it would get a variation without parent, and due to the return, it wouldn’t be ‘seen’ as a variation, therefore creating fatal errors when props are called. To prevent this, lets allow product constructors to throw exceptions. If they do, the factory class will catch them and return false instead of an invalid product object. @claudiosmweb Thoughts on this one before merge?
- Loading branch information...
Showing with 20 additions and 15 deletions.