Skip to content

Fix template image form element name when template is not active

Entity Clone Tempalte assumes that the value for the template image field is contained within the entity_clone_template_image form entry.

When templating is not enabled for an entity type another form entry name is used. This causes PHP warnings in the further processing of the entity when it is saved:

Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Closes #3424597

Merge request reports

Loading