Error when cloning content type when content moderation is enabled

Created on 30 August 2023, over 1 year ago
Updated 24 May 2024, 7 months ago

Problem/Motivation

Clone a content type while the content moderation module is enabled

 Warning: Undefined array key "status" in                  
Drupal\entity_clone\Form\EntityCloneForm->submitForm()    
(line 338 of /var/www/html/docroot/modules/contrib/entity_clone/src/Form/EntityCloneForm.php 

Steps to reproduce

Proposed resolution

Change the && $properties['status'] condition to && !empty($properties['status'])

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States bnjmnm Ann Arbor, MI

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

Comments & Activities

Production build 0.71.5 2024