Crashes forms without getEntity()

Created on 29 May 2024, 28 days ago
Updated 18 June 2024, 8 days ago

Problem/Motivation

The latest release of the module crashes form where the getEntity() method is not available on the form instance.
Ex: CheckoutFlow

Steps to reproduce

Install Drupal, Drupal Commerce and Drupal Mailchimp. Configure Checkout to allow registration. Add newsletter field to user entity and use MailChimplListsSelectWidget as Widget. Try to register.

Error thrown by this line
https://git.drupalcode.org/project/mailchimp/-/commit/fe6f4cbfe3dd7b0289...

Proposed resolution

At least check if the form instance has the getEntity method?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Lists Module

Created by

πŸ‡«πŸ‡·France GuillaumePacilly

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024