deleting variations referenced by group items causes problems

Created on 26 January 2023, over 1 year ago
Updated 21 December 2023, 7 months ago

Problem/Motivation

When you delete a product variation that is referenced by a group item you get WSOD
Error: Call to a member function getCacheTags() on null in Drupal\commerce_vado\Entity\VadoGroup->getCacheTagsToInvalidate() (line 275 of /var/www/html/web/modules/contrib/commerce_vado/src/Entity/VadoGroup.php)

Steps to reproduce

make a group with a variation, and then delete that variation.

Proposed resolution

Deleting stuff referenced by other stuff causes problems. Not sure how this should be handled.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024