ymcatwincities/openy_memberships

Cloned or otherwise malformed products can break the builder

Opened this issue · 0 comments

Cloning a product could result in a malformed product, which causes the membership-builder to throw:

Error: Call to a member function uuid() on null in Drupal\openy_memberships\Controller\OpenyMemberships->getProductsInBranch() (line 354 of /var/www/html/yhbb/docroot/modules/contrib/openy_memberships/src/Controller/OpenyMemberships.php)

A simple check should cause those broken products to not break everything.