AcquiaDamMediaLibraryFieldWidgetOpener broken with base fields

Created on 28 April 2025, 16 days ago

Problem/Motivation

AcquiaDamMediaLibraryFieldWidgetOpener::getSelectionResponse assumes the field is a field config. This causes a crash when using base fields:

    $widget_id = $parameters['field_widget_id'];
    $config = FieldConfig::loadByName($parameters['entity_type_id'], $parameters['bundle'], $parameters['field_name']);
    assert($config instanceof FieldConfigInterface);

Instead the field manager should be used.

Steps to reproduce

Try using XB Page w/ Acquia DAM. Cannot upload the "SEO Image" field.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024