Check if target bundle is defined in sync form before get values with list()

Created on 16 May 2023, about 1 year ago
Updated 18 May 2023, about 1 year ago

Problem/Motivation

On sync form submission, the module tries to get bundle and content type from values submitted and fails if it is not defined. It should check if the value is submitted before processing them.

Proposed resolution

Update code to check first if there is any target bundle selected. if none is selected, set default content type to "node". We can improve this by add another field to the form to select target content type if any bundle is defined, but code shouldn't use NodeType::create to create the new bundle.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain Juanjol Navarra

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

Comments & Activities

Production build 0.69.0 2024