Method isClonable throws Plugin not found exception when target_type is not defined in field settings

Created on 25 April 2024, 8 months ago

Problem/Motivation

A PluginNotFoundException error is encountered when attempting to clone a custom entity with entity reference fields. This occurs because the isClonable method does not verify whether the target_type is defined in the field settings.

Proposed resolution

Add check on entity type id before loading the entity storage.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇷France iheb.attia

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

Comments & Activities

Production build 0.71.5 2024