- Issue created by @puregin
- Merge request !12Test that array key 'third_party_settings' exists before using it to access sourceDisplay array. → (Open) created by puregin
Soon after the batch process to clone a selected entity type starts, the process fails with an abbreviated error message.
The error message Undefined array key "third_party_settings" in .../entity_type_clone/src/Controller/EntityTypeCloneController.php on line 78
appears in the PHP logs.
Environment: Drupal 10.3.4, PHP 8.2.22
As the PHP error message indicates, there is an attempt in EntityTypeCloneController.php
to access an array $sourceDisplay
using an array key 'third_party_settings'
. As this key could conceivably not exist, the presence of the key should be verified before it is used to access the array.
The supplied patch implements this fix.
Active
4.0
Code