Error on null bundle.

Created on 7 May 2024, about 2 months ago
Updated 5 June 2024, 25 days ago

Problem/Motivation

If the variation is somehow not available - unpublished in my case, we get an error. This unpublished entity shouldn't be seen anyway obviously, but this isn't the place it should error, especially when it not even selected to be an enabled bundle.

Error: Call to a member function bundle() on null in commerce_cart_redirection_form_alter() (line 42 of /var/www/drupal/web/modules/contrib/commerce_cart_redirection/commerce_cart_redirection.module)

Steps to reproduce

View a product with the default variation unpublished.

Proposed resolution

Make sure there is a variation before attempting to view the bundle.

πŸ› Bug report
Status

Fixed

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States devitate Orange County, CA

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

Comments & Activities

Production build 0.69.0 2024