EntityCloneCloneableField isClonable fails when target_type setting is missing

Created on 19 October 2023, 8 months ago
Updated 10 May 2024, about 1 month ago

Problem/Motivation

WSOD failure on trying to clone an item when a field exists that does not have target_type in its settings. This happens specifically when using the Dynamic Entity Reference module.

Steps to reproduce

- Install Entity Clone & Dynamic Entity Reference module as usual
- Add a DEF field to a content type
- Enable cloning for that content type
- Create content using that content type
- Try and clone the piece of content
- Observe error with '' being passed to the getStorage call

Proposed resolution

Add a check for $field->getSetting('target_type') to the if statement

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇺🇸United States nsciacca Connecticut

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

Comments & Activities

Production build 0.69.0 2024